mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-18 23:27:35 +01:00
Apply obsidian generator disabling to tripwire.
This commit is contained in:
parent
0dd9729b35
commit
22f45c45ee
@ -266,8 +266,9 @@ public void onBlockFromTo(BlockFromToEvent event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (wcfg.disableObsidianGenerators && (isAir || isLava)
|
if (wcfg.disableObsidianGenerators && (isAir || isLava)
|
||||||
&& blockTo.getTypeId() == 55) {
|
&& (blockTo.getTypeId() == BlockID.REDSTONE_WIRE
|
||||||
blockTo.setTypeId(0);
|
|| blockTo.getTypeId() == BlockID.TRIPWIRE)) {
|
||||||
|
blockTo.setTypeId(BlockID.AIR);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user