mirror of
https://github.com/bloodmc/GriefDefender.git
synced 2025-01-07 19:38:56 +01:00
Allow pistons to be protected in wilderness.
This commit is contained in:
parent
67e5641d40
commit
53176a7f90
@ -152,9 +152,6 @@ public void onBlockPistonExtend(BlockPistonExtendEvent event) {
|
||||
// Sticky pistons will attach to next block so we need to check it
|
||||
location = BlockUtil.getInstance().getBlockRelative(location, event.getDirection());
|
||||
targetClaim = this.storage.getClaimAt(location, targetClaim);
|
||||
if (targetClaim.isWilderness()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (handleBlockBreak(event, location, targetClaim, event.getBlock(), location.getBlock(), user, false)) {
|
||||
|
Loading…
Reference in New Issue
Block a user