This commit is contained in:
Jesse Boyd 2017-09-23 20:09:34 +10:00
parent 1d20ae2777
commit 2360782234
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -88,14 +88,14 @@ public class Set extends SubCommand {
} }
} }
return false; return false;
} else if (!allowUnsafe && (block.id == 0 || !WorldUtil.IMP.isBlockSolid(block))) { } else if (!allowUnsafe && (block.id != 0 && !WorldUtil.IMP.isBlockSolid(block))) {
MainUtil.sendMessage(player, C.NOT_ALLOWED_BLOCK, block.toString()); MainUtil.sendMessage(player, C.NOT_ALLOWED_BLOCK, block.toString());
return false; return false;
} }
} }
if (!allowUnsafe) { if (!allowUnsafe) {
for (PlotBlock block : blocks) { for (PlotBlock block : blocks) {
if (block.id == 0 || !WorldUtil.IMP.isBlockSolid(block)) { if (block.id != 0 && !WorldUtil.IMP.isBlockSolid(block)) {
MainUtil.sendMessage(player, C.NOT_ALLOWED_BLOCK, block.toString()); MainUtil.sendMessage(player, C.NOT_ALLOWED_BLOCK, block.toString());
return false; return false;
} }