mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-21 12:42:57 +00:00
Merge pull request #1063 from Qowyn/nei-and-knapsack
New NEI feature and knapsack fix
This commit is contained in:
commit
bd498aacb5
8 files changed
+394
-11
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