Fix teleport cancelled message showing after successful teleport. (#72)

This commit is contained in:
andrepl 2019-12-15 15:41:55 -05:00 committed by bloodmc
parent 699cc3bb97
commit f2a13b9539

View File

@ -90,8 +90,8 @@ public void run() {
if (playerData.teleportDelay > 0) {
final int delay = playerData.teleportDelay - 1;
if (delay == 0) {
player.teleport(playerData.teleportLocation);
playerData.teleportDelay = 0;
player.teleport(playerData.teleportLocation);
playerData.teleportLocation = null;
playerData.teleportSourceLocation = null;
continue;