Skip to content

Commit

Permalink
Merge pull request #63 from zly2006/fix-62
Browse files Browse the repository at this point in the history
Fix #62
  • Loading branch information
Gu-ZT authored Jul 28, 2024
2 parents 3be0db1 + 2a142a1 commit ee66195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/dev/dubhe/gugle/carpet/GcaExtension.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ee66195

Please sign in to comment.