From 0a52fd372ab4f84c3f2d3f58416a1cdf0a6c22b2 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 8 Feb 2012 06:12:15 -0500 Subject: [PATCH] Fixed VehicleBlockCollisionEvent returning the wrong block. Fixes BUKKIT-396 --- src/main/java/net/minecraft/server/Entity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java index d084b8f365..46ee684fef 100644 --- a/src/main/java/net/minecraft/server/Entity.java +++ b/src/main/java/net/minecraft/server/Entity.java @@ -563,7 +563,7 @@ public abstract class Entity { // CraftBukkit start if ((this.positionChanged) && (this.getBukkitEntity() instanceof Vehicle)) { Vehicle vehicle = (Vehicle) this.getBukkitEntity(); - org.bukkit.block.Block block = this.world.getWorld().getBlockAt(MathHelper.floor(this.locX), MathHelper.floor(this.locY - 0.20000000298023224D - (double) this.height), MathHelper.floor(this.locZ)); + org.bukkit.block.Block block = this.world.getWorld().getBlockAt(MathHelper.floor(this.locX), MathHelper.floor(this.locY - (double) this.height), MathHelper.floor(this.locZ)); if (d5 > d0) { block = block.getRelative(BlockFace.SOUTH);