diff options
Diffstat (limited to 'nms-patches/EntityBoat.patch')
-rw-r--r-- | nms-patches/EntityBoat.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/EntityBoat.patch b/nms-patches/EntityBoat.patch index 949598f6..57e18afe 100644 --- a/nms-patches/EntityBoat.patch +++ b/nms-patches/EntityBoat.patch @@ -70,7 +70,7 @@ @@ -134,9 +173,25 @@ public void collide(Entity entity) { if (entity instanceof EntityBoat) { - if (entity.getBoundingBox().b < this.getBoundingBox().e) { + if (entity.getBoundingBox().minY < this.getBoundingBox().maxY) { + // CraftBukkit start + VehicleEntityCollisionEvent event = new VehicleEntityCollisionEvent((Vehicle) this.getBukkitEntity(), entity.getBukkitEntity()); + this.world.getServer().getPluginManager().callEvent(event); @@ -81,7 +81,7 @@ + // CraftBukkit end super.collide(entity); } - } else if (entity.getBoundingBox().b <= this.getBoundingBox().b) { + } else if (entity.getBoundingBox().minY <= this.getBoundingBox().minY) { + // CraftBukkit start + VehicleEntityCollisionEvent event = new VehicleEntityCollisionEvent((Vehicle) this.getBukkitEntity(), entity.getBukkitEntity()); + this.world.getServer().getPluginManager().callEvent(event); |