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

View File

@ -75,6 +75,7 @@ public class CmdWild extends FCommand implements WaitedTask {
}
if (!success) {
p.sendMessage(TL.COMMAND_WILD_FAILED.toString());
teleportRange.remove(p);
}
}
@ -114,6 +115,7 @@ public class CmdWild extends FCommand implements WaitedTask {
@Override
public void handleFailure(Player player) {
player.sendMessage(TL.COMMAND_WILD_INTERUPTED.toString());
teleportRange.remove(player);
}
}