mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-27 12:46:09 +01:00
Update to our obsidian generator exploit prevention code (via config option "handleExploitObsidianGenerators") to address newer method involving tripwire strings instead of redstone
This commit is contained in:
parent
5531f77feb
commit
fb2a5a9a44
@ -20,9 +20,10 @@ public class FactionsExploitListener implements Listener
|
||||
if (event.isCancelled() == true || ! Conf.handleExploitObsidianGenerators) return;
|
||||
|
||||
// thanks to ObGenBlocker and WorldGuard for this method
|
||||
int source = event.getBlock().getTypeId();
|
||||
Block block = event.getToBlock();
|
||||
if ((source == 0 || source == 10 || source == 11) && block.getTypeId() == 55)
|
||||
int source = event.getBlock().getTypeId();
|
||||
int target = block.getTypeId();
|
||||
if ((source == 0 || source == 10 || source == 11) && (target == 55 || target == 132))
|
||||
block.setTypeId(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user