mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 14:46:45 +01:00
allow air
This commit is contained in:
parent
6b55b8cd67
commit
1d20ae2777
@ -88,14 +88,14 @@ public class Set extends SubCommand {
|
||||
}
|
||||
}
|
||||
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());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (!allowUnsafe) {
|
||||
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());
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user