Fixes crash with recipe book.
This commit is contained in:
parent
57f3e43ec5
commit
0b6808013d
3 changed files with 14 additions and 0 deletions
|
@ -32,6 +32,7 @@ import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
|
|||
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
|
||||
import reborncore.common.util.RebornCraftingHelper;
|
||||
import reborncore.common.util.RecipeRemover;
|
||||
import techreborn.Core;
|
||||
import techreborn.compat.CompatConfigs;
|
||||
import techreborn.compat.ICompatModule;
|
||||
import techreborn.init.ModItems;
|
||||
|
@ -63,6 +64,8 @@ public class BuildcraftBuildersCompat implements ICompatModule {
|
|||
'A', "circuitAdvanced",
|
||||
'E', new ItemStack(ModItems.DIAMOND_DRILL));
|
||||
}
|
||||
//The recipebook still knows about the old recipe so crashes, this should update it to have it replaced by the new recipe
|
||||
Core.proxy.rebuildRecipeBook();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -28,6 +28,7 @@ import net.minecraft.client.Minecraft;
|
|||
import net.minecraft.client.renderer.block.statemap.StateMap;
|
||||
import net.minecraft.client.renderer.entity.Render;
|
||||
import net.minecraft.client.renderer.entity.RenderManager;
|
||||
import net.minecraft.client.util.RecipeBookClient;
|
||||
import net.minecraft.util.text.TextFormatting;
|
||||
import net.minecraftforge.client.model.ModelLoader;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
@ -114,4 +115,10 @@ public class ClientProxy extends CommonProxy {
|
|||
public boolean fancyGraphics() {
|
||||
return Minecraft.getMinecraft().gameSettings.fancyGraphics;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void rebuildRecipeBook() {
|
||||
super.rebuildRecipeBook();
|
||||
RecipeBookClient.rebuildTable();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,4 +68,8 @@ public class CommonProxy implements ICompatModule {
|
|||
return true;
|
||||
}
|
||||
|
||||
public void rebuildRecipeBook(){
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue