mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 20:22:28 +00:00
Reload client recipe book after loading modded recipes.
This commit is contained in:
1 parent
b542179242
commit
1c24600bbb
5 files changed
+31
No files matched your search
@@ -56,6 +56,7 @@ import net.minecraft.client.resources.LegacyV2Adapter;
|
||||
import net.minecraft.client.resources.SimpleReloadableResourceManager;
|
||||
import net.minecraft.client.resources.data.MetadataSerializer;
|
||||
import net.minecraft.client.resources.data.PackMetadataSection;
|
||||
import net.minecraft.client.util.RecipeBookClient;
|
||||
import net.minecraft.crash.CrashReport;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.launchwrapper.Launch;
|
||||
@@ -1096,4 +1097,10 @@ public class FMLClientHandler implements IFMLSidedHandler
|
||||
{
|
||||
return SplashProgress.isDisplayVSyncForced;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resetClientRecipeBook()
|
||||
{
|
||||
RecipeBookClient.rebuildTable();
|
||||
}
|
||||
}
|
||||
@@ -771,4 +771,7 @@ public class FMLCommonHandler
|
||||
}
|
||||
|
||||
public boolean isDisplayVSyncForced() { return sidedDelegate.isDisplayVSyncForced(); }
|
||||
public void resetClientRecipeBook() {
|
||||
this.sidedDelegate.resetClientRecipeBook();
|
||||
}
|
||||
}
|
||||
@@ -84,4 +84,6 @@ public interface IFMLSidedHandler
|
||||
CompoundDataFixer getDataFixer();
|
||||
|
||||
boolean isDisplayVSyncForced();
|
||||
|
||||
default void resetClientRecipeBook(){}
|
||||
}
|
||||
Reference in new issue
Block a user