SPIGOT-1903, MC-98153: Portal Location Sync Issues

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-10-23 14:00:35 +11:00
parent 537ae5a7b0
commit cf579b12bc
3 changed files with 21 additions and 8 deletions

View File

@@ -442,7 +442,7 @@
+ location.setWorld(server.getWorldServer(i).getWorld());
}
+ WorldServer worldserver = ((CraftWorld) location.getWorld()).getHandle();
+ entityplayer1.setLocation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
+ entityplayer1.forceSetPositionRotation(location.getX(), location.getY(), location.getZ(), location.getYaw(), location.getPitch());
+ // CraftBukkit end
worldserver.getChunkProviderServer().getChunkAt((int) entityplayer1.locX >> 4, (int) entityplayer1.locZ >> 4);