From 7a8fa0266a0a00d7737d8ab058a12891f4b78ef5 Mon Sep 17 00:00:00 2001 From: Brettflan Date: Fri, 4 Jan 2013 09:13:28 -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); }