summaryrefslogtreecommitdiffstats
path: root/nms-patches/Entity.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2017-05-21 10:24:47 +1000
committermd_5 <git@md-5.net>2017-05-21 10:24:47 +1000
commit24147056e079d2913c7b222584fc26a48a3fee05 (patch)
tree77696f3f443f83cde576b103d33648d5f88fb55a /nms-patches/Entity.patch
parentcda27c992d261aad19886e7427c2caa22b3f0c12 (diff)
downloadcraftbukkit-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/Entity.patch')
-rw-r--r--nms-patches/Entity.patch8
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);
+ }
+