Fix saved toolbars not working with non-vanilla items (#5063)
This commit is contained in:
parent
6ece0ba254
commit
222a110eb1
4 changed files with 14 additions and 0 deletions
|
@ -572,6 +572,7 @@ public class ForgeModContainer extends DummyModContainer implements WorldAccessC
|
||||||
Ingredient.invalidateAll();
|
Ingredient.invalidateAll();
|
||||||
FMLCommonHandler.instance().resetClientRecipeBook();
|
FMLCommonHandler.instance().resetClientRecipeBook();
|
||||||
FMLCommonHandler.instance().reloadSearchTrees();
|
FMLCommonHandler.instance().reloadSearchTrees();
|
||||||
|
FMLCommonHandler.instance().reloadCreativeSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1087,6 +1087,12 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||||
this.client.getSearchTreeManager().onResourceManagerReload(this.client.getResourceManager());
|
this.client.getSearchTreeManager().onResourceManagerReload(this.client.getResourceManager());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void reloadCreativeSettings()
|
||||||
|
{
|
||||||
|
this.client.creativeSettings.read();
|
||||||
|
}
|
||||||
|
|
||||||
private CloudRenderer getCloudRenderer()
|
private CloudRenderer getCloudRenderer()
|
||||||
{
|
{
|
||||||
if (cloudRenderer == null)
|
if (cloudRenderer == null)
|
||||||
|
|
|
@ -777,4 +777,9 @@ public class FMLCommonHandler
|
||||||
public void reloadSearchTrees() {
|
public void reloadSearchTrees() {
|
||||||
this.sidedDelegate.reloadSearchTrees();
|
this.sidedDelegate.reloadSearchTrees();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void reloadCreativeSettings()
|
||||||
|
{
|
||||||
|
this.sidedDelegate.reloadCreativeSettings();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,4 +88,6 @@ public interface IFMLSidedHandler
|
||||||
default void resetClientRecipeBook(){}
|
default void resetClientRecipeBook(){}
|
||||||
|
|
||||||
default void reloadSearchTrees(){}
|
default void reloadSearchTrees(){}
|
||||||
|
|
||||||
|
default void reloadCreativeSettings(){}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue