Don't compare distances on teleport for different worlds

This commit is contained in:
libraryaddict 2019-02-04 17:20:03 +13:00
parent c0d36e033b
commit 08dfbe3282

View File

@ -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