mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +00:00
fixed essence mining when multiple people are mining (#349)
This commit is contained in:
committed by
Daniel Ginovker
parent
cad66fdcc8
commit
c48b2575e9
@@ -275,15 +275,15 @@ public class Mining {
|
|||||||
if (i != 2491) {
|
if (i != 2491) {
|
||||||
new Object(452, x, y, 0, type, 10, i, respawnTime);
|
new Object(452, x, y, 0, type, 10, i, respawnTime);
|
||||||
Region.addObject(452, x, y, 0, 10, type, false);
|
Region.addObject(452, x, y, 0, 10, type, false);
|
||||||
}
|
|
||||||
|
|
||||||
for (int t = 0; t < PlayerHandler.players.length; t++) {
|
for (int t = 0; t < PlayerHandler.players.length; t++) {
|
||||||
if (PlayerHandler.players[t] != null) {
|
if (PlayerHandler.players[t] != null) {
|
||||||
if (PlayerHandler.players[t].rockX == x && PlayerHandler.players[t].rockY == y) {
|
if (PlayerHandler.players[t].rockX == x && PlayerHandler.players[t].rockY == y) {
|
||||||
PlayerHandler.players[t].isMining = false;
|
PlayerHandler.players[t].isMining = false;
|
||||||
PlayerHandler.players[t].startAnimation(65535);
|
PlayerHandler.players[t].startAnimation(65535);
|
||||||
PlayerHandler.players[t].rockX = 0;
|
PlayerHandler.players[t].rockX = 0;
|
||||||
PlayerHandler.players[t].rockY = 0;
|
PlayerHandler.players[t].rockY = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user