Merge pull request #1063 from Qowyn/nei-and-knapsack

New NEI feature and knapsack fix
This commit is contained in:
boni committed 2014-10-05 22:37:46 +02:00
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;
}
}