Fixes AutoCrafting table crash closes #1423

This commit is contained in:
modmuss50 2018-01-31 13:08:21 +00:00
parent 34816e5ee7
commit e9039e6693
2 changed files with 4 additions and 1 deletions

View file

@ -189,7 +189,7 @@ public class GuiAutoCrafting extends GuiBase {
for (int i = 0; i < 9; i++) { for (int i = 0; i < 9; i++) {
dummyInv.setInventorySlotContents(i, ItemStack.EMPTY); 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); this.guiLeft = this.recipeSlector.updateScreenPosition(false, this.width, this.xSize);
} }

View file

@ -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_191904_o # width
public net.minecraft.client.gui.recipebook.GuiRecipeBook field_191905_p # height 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.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