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) {
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user