From 6ebb341788829eb382e44728992ece397181eced Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Tue, 16 Sep 2014 12:57:27 +1200 Subject: [PATCH] Fixed compile issues --- src/me/libraryaddict/disguise/DisguiseListener.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/DisguiseListener.java b/src/me/libraryaddict/disguise/DisguiseListener.java index c1538c42..bc94663d 100644 --- a/src/me/libraryaddict/disguise/DisguiseListener.java +++ b/src/me/libraryaddict/disguise/DisguiseListener.java @@ -29,7 +29,6 @@ import org.bukkit.event.player.PlayerChangedWorldEvent; import org.bukkit.event.player.PlayerInteractEntityEvent; import org.bukkit.event.player.PlayerJoinEvent; import org.bukkit.event.player.PlayerMoveEvent; -import org.bukkit.event.player.PlayerPortalEvent; import org.bukkit.event.player.PlayerRespawnEvent; import org.bukkit.event.player.PlayerTeleportEvent; import org.bukkit.event.vehicle.VehicleEnterEvent; @@ -322,7 +321,7 @@ public class DisguiseListener implements Listener { if (DisguiseConfig.isBedPacketsEnabled()) { chunkMove(event.getPlayer(), event.getPlayer().getLocation(), null); } - if (DisguiseConfig.isUndisguiseOnWorldChange() && event.getFrom().getWorld() != event.getTo().getWorld()) { + if (DisguiseConfig.isUndisguiseOnWorldChange()) { for (Disguise disguise : DisguiseAPI.getDisguises(event.getPlayer())) { disguise.removeDisguise(); }