fix/fabric: fix way game mode is changed

feat/data-edit-commands
William 5 months ago
parent 04606a7c9a
commit 68897e6265
No known key found for this signature in database

@ -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));
}
}

Loading…
Cancel
Save