diff --git a/src/main/java/net/minecraftforge/common/ForgeModContainer.java b/src/main/java/net/minecraftforge/common/ForgeModContainer.java index ea50ec4ec..3a6d0915c 100644 --- a/src/main/java/net/minecraftforge/common/ForgeModContainer.java +++ b/src/main/java/net/minecraftforge/common/ForgeModContainer.java @@ -572,6 +572,7 @@ public class ForgeModContainer extends DummyModContainer implements WorldAccessC Ingredient.invalidateAll(); FMLCommonHandler.instance().resetClientRecipeBook(); FMLCommonHandler.instance().reloadSearchTrees(); + FMLCommonHandler.instance().reloadCreativeSettings(); } diff --git a/src/main/java/net/minecraftforge/fml/client/FMLClientHandler.java b/src/main/java/net/minecraftforge/fml/client/FMLClientHandler.java index b9896bda0..54247bcaa 100644 --- a/src/main/java/net/minecraftforge/fml/client/FMLClientHandler.java +++ b/src/main/java/net/minecraftforge/fml/client/FMLClientHandler.java @@ -1087,6 +1087,12 @@ public class FMLClientHandler implements IFMLSidedHandler this.client.getSearchTreeManager().onResourceManagerReload(this.client.getResourceManager()); } + @Override + public void reloadCreativeSettings() + { + this.client.creativeSettings.read(); + } + private CloudRenderer getCloudRenderer() { if (cloudRenderer == null) diff --git a/src/main/java/net/minecraftforge/fml/common/FMLCommonHandler.java b/src/main/java/net/minecraftforge/fml/common/FMLCommonHandler.java index 3cc3adfb8..45716bc04 100644 --- a/src/main/java/net/minecraftforge/fml/common/FMLCommonHandler.java +++ b/src/main/java/net/minecraftforge/fml/common/FMLCommonHandler.java @@ -777,4 +777,9 @@ public class FMLCommonHandler public void reloadSearchTrees() { this.sidedDelegate.reloadSearchTrees(); } + + public void reloadCreativeSettings() + { + this.sidedDelegate.reloadCreativeSettings(); + } } diff --git a/src/main/java/net/minecraftforge/fml/common/IFMLSidedHandler.java b/src/main/java/net/minecraftforge/fml/common/IFMLSidedHandler.java index 3e65bae6e..781d617c9 100644 --- a/src/main/java/net/minecraftforge/fml/common/IFMLSidedHandler.java +++ b/src/main/java/net/minecraftforge/fml/common/IFMLSidedHandler.java @@ -88,4 +88,6 @@ public interface IFMLSidedHandler default void resetClientRecipeBook(){} default void reloadSearchTrees(){} + + default void reloadCreativeSettings(){} }