mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-11 19:36:46 +01:00
tiny performance optimization to last commit
This commit is contained in:
parent
fb2a5a9a44
commit
21409a05bb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user