Fix saved toolbars not working with non-vanilla items (#5063)

This commit is contained in:
Ben Staddon 2018-08-16 21:17:27 +01:00 committed by LexManos
parent 6ece0ba254
commit 222a110eb1
4 changed files with 14 additions and 0 deletions

View file

@ -572,6 +572,7 @@ public class ForgeModContainer extends DummyModContainer implements WorldAccessC
Ingredient.invalidateAll();
FMLCommonHandler.instance().resetClientRecipeBook();
FMLCommonHandler.instance().reloadSearchTrees();
FMLCommonHandler.instance().reloadCreativeSettings();
}

View file

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

View file

@ -777,4 +777,9 @@ public class FMLCommonHandler
public void reloadSearchTrees() {
this.sidedDelegate.reloadSearchTrees();
}
public void reloadCreativeSettings()
{
this.sidedDelegate.reloadCreativeSettings();
}
}

View file

@ -88,4 +88,6 @@ public interface IFMLSidedHandler
default void resetClientRecipeBook(){}
default void reloadSearchTrees(){}
default void reloadCreativeSettings(){}
}