From ca98205dc2902b7b7677c5fe52f49232539806d2 Mon Sep 17 00:00:00 2001 From: kalle Date: Mon, 28 Sep 2020 22:33:36 +0200 Subject: [PATCH] Fix fake players in dimensions that are not the overworld. --- .../java/nl/kallestruik/vanillatweaks/fakeplayer/FakePlayer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/nl/kallestruik/vanillatweaks/fakeplayer/FakePlayer.java b/src/main/java/nl/kallestruik/vanillatweaks/fakeplayer/FakePlayer.java index 9bf7a3b..a267c42 100644 --- a/src/main/java/nl/kallestruik/vanillatweaks/fakeplayer/FakePlayer.java +++ b/src/main/java/nl/kallestruik/vanillatweaks/fakeplayer/FakePlayer.java @@ -88,6 +88,7 @@ public class FakePlayer extends EntityPlayer { instance.playerConnection.a(x, y, z, (float) yaw, (float) pitch); // Set the fake player's world to the new world. instance.playerInteractManager.world = worldServer; + instance.teleportTo(worldServer, new BlockPosition(x, y, z)); } /// Set the fake players health to max.