diff options
author | md_5 <git@md-5.net> | 2017-05-21 10:24:47 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-05-21 10:24:47 +1000 |
commit | 24147056e079d2913c7b222584fc26a48a3fee05 (patch) | |
tree | 77696f3f443f83cde576b103d33648d5f88fb55a /nms-patches | |
parent | cda27c992d261aad19886e7427c2caa22b3f0c12 (diff) | |
download | craftbukkit-24147056e079d2913c7b222584fc26a48a3fee05.tar craftbukkit-24147056e079d2913c7b222584fc26a48a3fee05.tar.gz craftbukkit-24147056e079d2913c7b222584fc26a48a3fee05.tar.lz craftbukkit-24147056e079d2913c7b222584fc26a48a3fee05.tar.xz craftbukkit-24147056e079d2913c7b222584fc26a48a3fee05.zip |
SPIGOT-3258: VehicleBlockCollisionEvent only fires in certain directions
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/Entity.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nms-patches/Entity.patch b/nms-patches/Entity.patch index b91ad4b5..11d14050 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); + } + |