Change some block == AIR checks to isAir to catch CAVE_AIR

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-01-27 10:09:46 +11:00
parent 6037f360e7
commit 42e9529365
3 changed files with 3 additions and 3 deletions

View File

@@ -80,7 +80,7 @@
+ for (int i1 = this.blocks.size() - 1; i1 >= 0; i1--) {
+ BlockPosition cpos = (BlockPosition) this.blocks.get(i1);
+ org.bukkit.block.Block bblock = bworld.getBlockAt(cpos.getX(), cpos.getY(), cpos.getZ());
+ if (bblock.getType() != org.bukkit.Material.AIR) {
+ if (!bblock.getType().isAir()) {
+ blockList.add(bblock);
+ }
+ }