aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/tileentities/machines
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-07-11 23:25:09 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-07-11 23:25:09 +1000
commitdf714a834ebc45f913d44f6882ae030aaafb1187 (patch)
treeae85381caf9cd14f295a2c649ac95fe5cd168ba5 /src/Java/gtPlusPlus/core/tileentities/machines
parent3a78abc5109025c13032d0e6e60e820865778a6f (diff)
downloadGT5-Unofficial-df714a834ebc45f913d44f6882ae030aaafb1187.tar.gz
GT5-Unofficial-df714a834ebc45f913d44f6882ae030aaafb1187.tar.bz2
GT5-Unofficial-df714a834ebc45f913d44f6882ae030aaafb1187.zip
- Disabled the crafting grid in the Workbench. (Dupe fix)
% More work on trying to empty this god damn recipe map.
Diffstat (limited to 'src/Java/gtPlusPlus/core/tileentities/machines')
-rw-r--r--src/Java/gtPlusPlus/core/tileentities/machines/TileEntityWorkbench.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityWorkbench.java b/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityWorkbench.java
index eac2724aa0..0657b6d886 100644
--- a/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityWorkbench.java
+++ b/src/Java/gtPlusPlus/core/tileentities/machines/TileEntityWorkbench.java
@@ -23,7 +23,7 @@ public class TileEntityWorkbench extends TileEntity implements INetworkDataProvi
public InventoryWorkbenchChest inventoryChest;
public InventoryWorkbenchTools inventoryTool;
public InventoryWorkbenchHoloSlots inventoryHolo;
- public InventoryWorkbenchHoloCrafting inventoryCrafting;
+ //public InventoryWorkbenchHoloCrafting inventoryCrafting;
public IInventory inventoryCraftResult = new InventoryCraftResult();
@@ -31,7 +31,7 @@ public class TileEntityWorkbench extends TileEntity implements INetworkDataProvi
this.inventoryTool = new InventoryWorkbenchTools();//number of slots - without product slot
this.inventoryChest = new InventoryWorkbenchChest();//number of slots - without product slot
this.inventoryHolo = new InventoryWorkbenchHoloSlots();
- this.inventoryCrafting = new InventoryWorkbenchHoloCrafting();
+ //this.inventoryCrafting = new InventoryWorkbenchHoloCrafting();
this.canUpdate();
}
@@ -59,14 +59,14 @@ public class TileEntityWorkbench extends TileEntity implements INetworkDataProvi
// Write Crafting Matrix to NBT
final NBTTagList craftingTag = new NBTTagList();
- for (int currentIndex = 0; currentIndex < this.inventoryCrafting.getSizeInventory(); ++currentIndex) {
+ /*for (int currentIndex = 0; currentIndex < this.inventoryCrafting.getSizeInventory(); ++currentIndex) {
if (this.inventoryCrafting.getStackInSlot(currentIndex) != null) {
final NBTTagCompound tagCompound = new NBTTagCompound();
tagCompound.setByte("Slot", (byte) currentIndex);
this.inventoryCrafting.getStackInSlot(currentIndex).writeToNBT(tagCompound);
craftingTag.appendTag(tagCompound);
}
- }
+ }*/
nbt.setTag("CraftingMatrix", craftingTag);
// Write craftingResult to NBT
@@ -90,14 +90,14 @@ public class TileEntityWorkbench extends TileEntity implements INetworkDataProvi
// Read in the Crafting Matrix from NBT
final NBTTagList craftingTag = nbt.getTagList("CraftingMatrix", 10);
- this.inventoryCrafting = new InventoryWorkbenchHoloCrafting(); //TODO: magic number
+ /*this.inventoryCrafting = new InventoryWorkbenchHoloCrafting(); //TODO: magic number
for (int i = 0; i < craftingTag.tagCount(); ++i) {
final NBTTagCompound tagCompound = craftingTag.getCompoundTagAt(i);
final byte slot = tagCompound.getByte("Slot");
if ((slot >= 0) && (slot < this.inventoryCrafting.getSizeInventory())) {
this.inventoryCrafting.setInventorySlotContents(slot, ItemStack.loadItemStackFromNBT(tagCompound));
}
- }
+ }*/
// Read craftingResult from NBT