From 68897e626543133b1c0f55e0eb5418fa0c1fda8f Mon Sep 17 00:00:00 2001 From: William Date: Sat, 15 Jun 2024 13:51:29 +0100 Subject: [PATCH] fix/fabric: fix way game mode is changed --- .../src/main/java/net/william278/husksync/data/FabricData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fabric/src/main/java/net/william278/husksync/data/FabricData.java b/fabric/src/main/java/net/william278/husksync/data/FabricData.java index 0f3eb7a6..e282db48 100644 --- a/fabric/src/main/java/net/william278/husksync/data/FabricData.java +++ b/fabric/src/main/java/net/william278/husksync/data/FabricData.java @@ -769,7 +769,7 @@ public abstract class FabricData implements Data { @Override public void apply(@NotNull FabricUser user, @NotNull FabricHuskSync plugin) throws IllegalStateException { - user.getPlayer().interactionManager.changeGameMode(net.minecraft.world.GameMode.byName(gameMode)); + user.getPlayer().changeGameMode(net.minecraft.world.GameMode.byName(gameMode)); } }