mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-31 20:41:28 +01:00
Merge branch 'master' of https://github.com/sk89q/worldguard
This commit is contained in:
commit
2119b274fd
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1482,6 +1482,9 @@ public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// found non-matching part, stop checking this command
|
||||||
|
continue blocked;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user