Fixed VehicleBlockCollisionEvent returning the wrong block. Fixes BUKKIT-396
Dieser Commit ist enthalten in:
Ursprung
497a0e247b
Commit
0a52fd372a
@ -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);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren