mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Change some block == AIR checks to isAir to catch CAVE_AIR
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -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);
|
||||
+ }
|
||||
|
Reference in New Issue
Block a user