mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 04:32:26 +00:00
Support for NEI crafting overlay in crafting station with attached chest.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user