tiny performance optimization to last commit
This commit is contained in:
parent
fc6e80ecbe
commit
7a8fa0266a
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user