From e9039e66931132fa02f37eb330eb810077df60aa Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Wed, 31 Jan 2018 13:08:21 +0000 Subject: [PATCH] Fixes AutoCrafting table crash closes #1423 --- .../techreborn/client/gui/autocrafting/GuiAutoCrafting.java | 2 +- src/main/resources/techreborn_at.cfg | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java b/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java index 7c4fe4e72..229dfd71e 100644 --- a/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java +++ b/src/main/java/techreborn/client/gui/autocrafting/GuiAutoCrafting.java @@ -189,7 +189,7 @@ public class GuiAutoCrafting extends GuiBase { for (int i = 0; i < 9; i++) { dummyInv.setInventorySlotContents(i, ItemStack.EMPTY); } - this.recipeSlector.func_194303_a(this.width, this.height, this.mc, false, dummyInv); + this.recipeSlector.func_194303_a(this.width, this.height, Minecraft.getMinecraft(), false, dummyInv); this.guiLeft = this.recipeSlector.updateScreenPosition(false, this.width, this.xSize); } diff --git a/src/main/resources/techreborn_at.cfg b/src/main/resources/techreborn_at.cfg index 862fd5dc6..ef25930e6 100644 --- a/src/main/resources/techreborn_at.cfg +++ b/src/main/resources/techreborn_at.cfg @@ -5,3 +5,6 @@ public net.minecraft.client.gui.recipebook.GuiRecipeBook field_193960_m # toggle public net.minecraft.client.gui.recipebook.GuiRecipeBook field_191904_o # width public net.minecraft.client.gui.recipebook.GuiRecipeBook field_191905_p # height public net.minecraft.client.gui.recipebook.GuiRecipeBook field_191903_n # xOffset + +public net.minecraft.client.gui.inventory.GuiContainer field_147003_i # guiLeft +public net.minecraft.client.gui.inventory.GuiContainer field_147009_r # guiTop