Don't save player twice when shadowing (#2131)

Saving has side effects, such as removing enderpearls
This commit is contained in:
altrisi authored and GitHub committed 2025-11-27 20:01:30 +01:00
1 parent 75a5d4ee12
commit 2f67690ec3
1 file changed
-1
@@ -136,7 +136,6 @@ public class EntityPlayerMPFake extends ServerPlayer
public static EntityPlayerMPFake createShadow(MinecraftServer server, ServerPlayer player) public static EntityPlayerMPFake createShadow(MinecraftServer server, ServerPlayer player)
{ {
player.level().getServer().getPlayerList().remove(player);
player.connection.disconnect(Component.translatable("multiplayer.disconnect.duplicate_login")); player.connection.disconnect(Component.translatable("multiplayer.disconnect.duplicate_login"));
ServerLevel worldIn = player.level();//.getWorld(player.dimension); ServerLevel worldIn = player.level();//.getWorld(player.dimension);
GameProfile gameprofile = player.getGameProfile(); GameProfile gameprofile = player.getGameProfile();