From 21409a05bbfe835087d7ed008c9d9d7e8de46243 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 4 Jan 2013 09:13:27 -0600 Subject: [PATCH] tiny performance optimization to last commit --- .../factions/listeners/FactionsExploitListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/massivecraft/factions/listeners/FactionsExploitListener.java b/src/com/massivecraft/factions/listeners/FactionsExploitListener.java index dcaf439e..42ccd4c4 100644 --- a/src/com/massivecraft/factions/listeners/FactionsExploitListener.java +++ b/src/com/massivecraft/factions/listeners/FactionsExploitListener.java @@ -23,7 +23,7 @@ public class FactionsExploitListener implements Listener Block block = event.getToBlock(); int source = event.getBlock().getTypeId(); int target = block.getTypeId(); - if ((source == 0 || source == 10 || source == 11) && (target == 55 || target == 132)) + if ((target == 55 || target == 132) && (source == 0 || source == 10 || source == 11)) block.setTypeId(0); }