mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2025-08-05 03:53:34 +00:00
allow air
This commit is contained in:
parent
6b55b8cd67
commit
1d20ae2777
1 changed files with 2 additions and 2 deletions
|
@ -88,14 +88,14 @@ public class Set extends SubCommand {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} else if (!allowUnsafe && !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 (!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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue