From 08dfbe3282f1fa2b8e278b1d99eb2d6c3fc6121d Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Mon, 4 Feb 2019 17:20:03 +1300 Subject: [PATCH] Don't compare distances on teleport for different worlds --- src/main/java/me/libraryaddict/disguise/DisguiseListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/libraryaddict/disguise/DisguiseListener.java b/src/main/java/me/libraryaddict/disguise/DisguiseListener.java index 9f2da72a..053077d4 100644 --- a/src/main/java/me/libraryaddict/disguise/DisguiseListener.java +++ b/src/main/java/me/libraryaddict/disguise/DisguiseListener.java @@ -668,7 +668,7 @@ public class DisguiseListener implements Listener { } } - if (DisguiseAPI.isSelfDisguised(player)) { + if (DisguiseAPI.isSelfDisguised(player) && to.getWorld() == from.getWorld()) { Disguise disguise = DisguiseAPI.getDisguise(player, player); // If further than 64 blocks, resend the self disguise