From 24147056e079d2913c7b222584fc26a48a3fee05 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 21 May 2017 10:24:47 +1000 Subject: [PATCH] SPIGOT-3258: VehicleBlockCollisionEvent only fires in certain directions --- nms-patches/Entity.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nms-patches/Entity.patch b/nms-patches/Entity.patch index b91ad4b554..11d140506d 100644 --- a/nms-patches/Entity.patch +++ b/nms-patches/Entity.patch @@ -240,13 +240,13 @@ + Vehicle vehicle = (Vehicle) this.getBukkitEntity(); + org.bukkit.block.Block bl = this.world.getWorld().getBlockAt(MathHelper.floor(this.locX), MathHelper.floor(this.locY), MathHelper.floor(this.locZ)); + -+ if (d6 > d0) { ++ if (d7 > d0) { + bl = bl.getRelative(BlockFace.EAST); -+ } else if (d6 < d0) { ++ } else if (d7 < d0) { + bl = bl.getRelative(BlockFace.WEST); -+ } else if (d8 > d2) { ++ } else if (d9 > d2) { + bl = bl.getRelative(BlockFace.SOUTH); -+ } else if (d8 < d2) { ++ } else if (d9 < d2) { + bl = bl.getRelative(BlockFace.NORTH); + } +