Fixed an internal error. Player wasn't being removed from teleportRange after a failed teleportation.

This commit is contained in:
Stefan923 2020-05-05 18:30:09 +03:00 committed by BrowkS
parent ae7bb670d7
commit 01913e7286
1 changed files with 2 additions and 0 deletions

View File

@ -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);
} }
} }