tiny performance optimization to last commit

This commit is contained in:
Brettflan 2013-01-04 09:13:27 -06:00
parent fb2a5a9a44
commit 21409a05bb

View File

@ -23,7 +23,7 @@ public class FactionsExploitListener implements Listener
Block block = event.getToBlock(); Block block = event.getToBlock();
int source = event.getBlock().getTypeId(); int source = event.getBlock().getTypeId();
int target = block.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); block.setTypeId(0);
} }