From fb2a5a9a4458c4ab4faf520a249c24966aa259e6 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 4 Jan 2013 09:06:56 -0600 Subject: [PATCH] Update to our obsidian generator exploit prevention code (via config option "handleExploitObsidianGenerators") to address newer method involving tripwire strings instead of redstone --- .../factions/listeners/FactionsExploitListener.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/factions/listeners/FactionsExploitListener.java b/src/com/massivecraft/factions/listeners/FactionsExploitListener.java index aebbe3b3..dcaf439e 100644 --- a/src/com/massivecraft/factions/listeners/FactionsExploitListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsExploitListener.java @@ -20,9 +20,10 @@ public class FactionsExploitListener implements Listener if (event.isCancelled() == true || ! Conf.handleExploitObsidianGenerators) return; // thanks to ObGenBlocker and WorldGuard for this method - int source = event.getBlock().getTypeId(); Block block = event.getToBlock(); - if ((source == 0 || source == 10 || source == 11) && block.getTypeId() == 55) + int source = event.getBlock().getTypeId(); + int target = block.getTypeId(); + if ((source == 0 || source == 10 || source == 11) && (target == 55 || target == 132)) block.setTypeId(0); }