From 752cf95e37f2356087bf051f26adc399b33b710a Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 15 Jan 2020 15:05:30 +1100 Subject: [PATCH] SPIGOT-5510: VehicleBlockCollisionEvent returns the wrong block --- 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 f31c876847..580ffc4f6f 100644 --- a/nms-patches/Entity.patch +++ b/nms-patches/Entity.patch @@ -214,13 +214,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 (vec3d1.x > vec3d.x) { ++ if (vec3d.x > vec3d1.x) { + bl = bl.getRelative(BlockFace.EAST); -+ } else if (vec3d.x < vec3d.x) { ++ } else if (vec3d.x < vec3d1.x) { + bl = bl.getRelative(BlockFace.WEST); -+ } else if (vec3d1.z > vec3d.z) { ++ } else if (vec3d.z > vec3d1.z) { + bl = bl.getRelative(BlockFace.SOUTH); -+ } else if (vec3d1.z < vec3d.z) { ++ } else if (vec3d.z < vec3d1.z) { + bl = bl.getRelative(BlockFace.NORTH); + } +