From ef91313c29690d431cfa63d38d8ece1330a5bc21 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Sat, 9 Aug 2025 11:24:52 +0200 Subject: [PATCH] Adjust `gameStateChangeReason` field offset for updated packet structure in Minecraft 1.21. --- .../src/de/steamwar/bausystem/utils/NMSWrapper21.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem/BauSystem_21/src/de/steamwar/bausystem/utils/NMSWrapper21.java b/BauSystem/BauSystem_21/src/de/steamwar/bausystem/utils/NMSWrapper21.java index 816b9bd7..977650f7 100644 --- a/BauSystem/BauSystem_21/src/de/steamwar/bausystem/utils/NMSWrapper21.java +++ b/BauSystem/BauSystem_21/src/de/steamwar/bausystem/utils/NMSWrapper21.java @@ -66,7 +66,7 @@ public class NMSWrapper21 implements NMSWrapper { player.updateInventory(); } - private static final Reflection.Field gameStateChangeReason = Reflection.getField(NoClipCommand.gameStateChange, ClientboundGameEventPacket.Type.class, 12); + private static final Reflection.Field gameStateChangeReason = Reflection.getField(NoClipCommand.gameStateChange, ClientboundGameEventPacket.Type.class, 14); @Override public void setGameStateChangeReason(Object packet) {