From 4a2d64b4451de3be2c29cc6ee954f92061fae9da Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 23 Apr 2024 21:01:49 +0100 Subject: [PATCH] Fix /ccreativetab --- .../clientcommands/command/CreativeTabCommand.java | 2 +- src/main/resources/mixins.clientcommands.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/earthcomputer/clientcommands/command/CreativeTabCommand.java b/src/main/java/net/earthcomputer/clientcommands/command/CreativeTabCommand.java index 3f07cc9e1..1952fbc33 100644 --- a/src/main/java/net/earthcomputer/clientcommands/command/CreativeTabCommand.java +++ b/src/main/java/net/earthcomputer/clientcommands/command/CreativeTabCommand.java @@ -71,7 +71,7 @@ public static void registerItemGroups() { // FIXME: this is a hack because creative tabs must be registered on startup but item stacks normally can't be // parsed until the world is loaded. Use the default registries for now, as most things in item stacks aren't // in dynamic registries yet. Fix this once creative tabs can be registered dynamically. - var holderLookupProvider = new RegistryAccess.ImmutableRegistryAccess(BuiltInRegistries.REGISTRY.stream().toList()).freeze(); + var holderLookupProvider = new RegistryAccess.ImmutableRegistryAccess(BuiltInRegistries.REGISTRY.stream().toList()); tabs.forEach((key, tab) -> { try { tab.registerItemGroup(holderLookupProvider, key); diff --git a/src/main/resources/mixins.clientcommands.json b/src/main/resources/mixins.clientcommands.json index 42414fdb3..04965afbd 100644 --- a/src/main/resources/mixins.clientcommands.json +++ b/src/main/resources/mixins.clientcommands.json @@ -27,9 +27,9 @@ "MixinCustomCreativeSlot", "MixinDamageEnchantment", "MixinEditBox", + "MixinEnchantmentDefinition", "MixinEnchantmentHelper", "MixinEnchantmentMenu", - "MixinEnchantmentDefinition", "MixinEnchantmentScreen", "MixinEntity", "MixinEntityRendererDispatcher",