From 2b4f90765598ce16f6fae86c869a739aac7508d4 Mon Sep 17 00:00:00 2001 From: gnembon Date: Sun, 19 Jan 2020 16:45:14 -0400 Subject: [PATCH] player fixes --- src/main/java/carpet/patches/EntityPlayerMPFake.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/carpet/patches/EntityPlayerMPFake.java b/src/main/java/carpet/patches/EntityPlayerMPFake.java index 0b8bcdad..4b4603f7 100644 --- a/src/main/java/carpet/patches/EntityPlayerMPFake.java +++ b/src/main/java/carpet/patches/EntityPlayerMPFake.java @@ -47,11 +47,12 @@ public class EntityPlayerMPFake extends ServerPlayerEntity instance.dimension = dimension; old_world.removePlayer(instance); instance.removed = false; - worldIn.spawnEntity(instance); + //worldIn.spawnEntity(instance); instance.setWorld(worldIn); - server.getPlayerManager().sendWorldInfo(instance, old_world); + server.getPlayerManager().sendWorldInfo(instance, worldIn); instance.networkHandler.requestTeleport(d0, d1, d2, (float) yaw, (float) pitch); instance.interactionManager.setWorld(worldIn); + worldIn.method_18211(instance); } instance.setHealth(20.0F); instance.removed = false;