tiny performance optimization to last commit

This commit is contained in:
Brettflan 2013-01-04 09:13:28 -06:00
parent fc6e80ecbe
commit 7a8fa0266a

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);
} }