diff --git a/nms-patches/PlayerConnection.patch b/nms-patches/PlayerConnection.patch index dcfc048029..fad79bbdb8 100644 --- a/nms-patches/PlayerConnection.patch +++ b/nms-patches/PlayerConnection.patch @@ -446,7 +446,7 @@ + PlayerTeleportEvent event = new PlayerTeleportEvent(player, from.clone(), to.clone(), PlayerTeleportEvent.TeleportCause.UNKNOWN); + this.server.getPluginManager().callEvent(event); + -+ if (event.isCancelled() || to.equals(event.getTo())) { ++ if (event.isCancelled() || !to.equals(event.getTo())) { + set.clear(); // Can't relative teleport + to = event.isCancelled() ? event.getFrom() : event.getTo(); + d0 = to.getX();