From b7c34840cdd25f2bfa8b9ce6319adbc3e33fc069 Mon Sep 17 00:00:00 2001 From: drtshock Date: Thu, 15 Jan 2015 13:24:33 -0600 Subject: [PATCH] Fix exploit. --- .../factions/listeners/FactionsExploitListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsExploitListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsExploitListener.java index 66dcd2e2..10ccb485 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsExploitListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsExploitListener.java @@ -15,7 +15,7 @@ public class FactionsExploitListener implements Listener { @EventHandler(priority = EventPriority.NORMAL) public void obsidianGenerator(BlockFromToEvent event) { - if (event.isCancelled() == true || !Conf.handleExploitObsidianGenerators) { + if (event.isCancelled() || !Conf.handleExploitObsidianGenerators) { return; } @@ -31,7 +31,7 @@ public class FactionsExploitListener implements Listener { @EventHandler(priority = EventPriority.NORMAL) public void enderPearlTeleport(PlayerTeleportEvent event) { - if (event.isCancelled() == true || !Conf.handleExploitEnderPearlClipping) { + if (event.isCancelled() || !Conf.handleExploitEnderPearlClipping) { return; } if (event.getCause() != PlayerTeleportEvent.TeleportCause.ENDER_PEARL) {