This commit is contained in:
TheCutter 2014-06-14 21:36:06 +02:00
commit 2119b274fd
2 changed files with 6 additions and 2 deletions

View File

@ -266,8 +266,9 @@ public void onBlockFromTo(BlockFromToEvent event) {
}
if (wcfg.disableObsidianGenerators && (isAir || isLava)
&& blockTo.getTypeId() == 55) {
blockTo.setTypeId(0);
&& (blockTo.getTypeId() == BlockID.REDSTONE_WIRE
|| blockTo.getTypeId() == BlockID.TRIPWIRE)) {
blockTo.setTypeId(BlockID.AIR);
return;
}
}

View File

@ -1482,6 +1482,9 @@ public void onPlayerCommandPreprocess(PlayerCommandPreprocessEvent event) {
continue;
}
}
} else {
// found non-matching part, stop checking this command
continue blocked;
}
}
}