SPIGOT-4396: Improve vehicle movement

By: Aikar <aikar@aikar.co>
This commit is contained in:
CraftBukkit/Spigot
2018-09-26 17:19:16 +10:00
parent 5d8f320fb0
commit f1c24bbfa2
4 changed files with 115 additions and 65 deletions

View File

@@ -31,3 +31,11 @@
break;
}
}
@@ -372,6 +385,7 @@
this.locX = (double) blockposition.getX() + 0.5D;
this.locY = (double) blockposition.getY();
this.locZ = (double) blockposition.getZ() + 0.5D;
+ if (valid) world.entityJoinedWorld(this, false); // CraftBukkit
this.lastX = this.locX;
this.lastY = this.locY;
this.lastZ = this.locZ;