Fixes crash with recipe book.

This commit is contained in:
modmuss50 2017-12-29 12:50:10 +00:00
parent 57f3e43ec5
commit 0b6808013d
No known key found for this signature in database
GPG key ID: 773D17BE8BF49C82
3 changed files with 14 additions and 0 deletions

View file

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

View file

@ -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();
}
}

View file

@ -68,4 +68,8 @@ public class CommonProxy implements ICompatModule {
return true;
}
public void rebuildRecipeBook(){
}
}