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

This commit is contained in:
md_5
2020-01-27 10:09:46 +11:00
parent e911c70f85
commit 10763a88ba
3 changed files with 3 additions and 3 deletions

View File

@@ -224,7 +224,7 @@
+ bl = bl.getRelative(BlockFace.NORTH);
+ }
+
+ if (bl.getType() != org.bukkit.Material.AIR) {
+ if (!bl.getType().isAir()) {
+ VehicleBlockCollisionEvent event = new VehicleBlockCollisionEvent(vehicle, bl);
+ world.getServer().getPluginManager().callEvent(event);
+ }