Fix fake players in dimensions that are not the overworld.

master
kalle 2020-09-28 22:33:36 +02:00
parent 31ce91a823
commit ca98205dc2
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ public class FakePlayer extends EntityPlayer {
instance.playerConnection.a(x, y, z, (float) yaw, (float) pitch); instance.playerConnection.a(x, y, z, (float) yaw, (float) pitch);
// Set the fake player's world to the new world. // Set the fake player's world to the new world.
instance.playerInteractManager.world = worldServer; instance.playerInteractManager.world = worldServer;
instance.teleportTo(worldServer, new BlockPosition(x, y, z));
} }
/// Set the fake players health to max. /// Set the fake players health to max.