diff --git a/src/main/java/dev/dubhe/gugle/carpet/GcaExtension.java b/src/main/java/dev/dubhe/gugle/carpet/GcaExtension.java index 23292e7..5ae7dd8 100644 --- a/src/main/java/dev/dubhe/gugle/carpet/GcaExtension.java +++ b/src/main/java/dev/dubhe/gugle/carpet/GcaExtension.java @@ -69,7 +69,7 @@ public void onGameStarted() { public void onServerClosed(MinecraftServer server) { if (GcaSetting.fakePlayerResident) { JsonObject fakePlayerList = new JsonObject(); - server.getPlayerList().getPlayers().forEach(player -> { + fakePlayerInventoryContainerMap.keySet().forEach(player -> { if (!(player instanceof EntityPlayerMPFake)) return; if (player.saveWithoutId(new CompoundTag()).contains("gca.NoResident")) return; String username = player.getGameProfile().getName();