Fixed an internal error. Player wasn't being removed from teleportRange after a failed teleportation.
This commit is contained in:
parent
ae7bb670d7
commit
01913e7286
@ -75,6 +75,7 @@ public class CmdWild extends FCommand implements WaitedTask {
|
|||||||
}
|
}
|
||||||
if (!success) {
|
if (!success) {
|
||||||
p.sendMessage(TL.COMMAND_WILD_FAILED.toString());
|
p.sendMessage(TL.COMMAND_WILD_FAILED.toString());
|
||||||
|
teleportRange.remove(p);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -114,6 +115,7 @@ public class CmdWild extends FCommand implements WaitedTask {
|
|||||||
@Override
|
@Override
|
||||||
public void handleFailure(Player player) {
|
public void handleFailure(Player player) {
|
||||||
player.sendMessage(TL.COMMAND_WILD_INTERUPTED.toString());
|
player.sendMessage(TL.COMMAND_WILD_INTERUPTED.toString());
|
||||||
|
teleportRange.remove(player);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user