Support for NEI crafting overlay in crafting station with attached chest.

This commit is contained in:
Qowyn committed 2014-10-05 22:05:48 +02:00
1 parent 38da4d74bc
commit d92b0add32
4 files changed
+376 -5

No files matched your search

@@ -43,6 +43,8 @@ public class CraftingStationGui extends GuiContainer implements INEIGuiHandler
ToolMaterial materialEnum;
String centerTitle;
NBTTagCompound tags;
public static final int CHEST_WIDTH = 116;
// Panel positions
@@ -91,8 +93,8 @@ public class CraftingStationGui extends GuiContainer implements INEIGuiHandler
if (logic.chest != null)
{
this.xSize += 116;
this.guiLeft -= 116;
this.xSize += CHEST_WIDTH;
this.guiLeft -= CHEST_WIDTH;
this.chestLeft = this.guiLeft;
this.chestTop = this.craftingTop;
if (logic.doubleChest != null)
@@ -645,5 +647,10 @@ public class CraftingStationGui extends GuiContainer implements INEIGuiHandler
return true;
}
public boolean hasChest()
{
return logic.chest != null;
}
}