Added Items, Fixed Some Recipe handler errors, and fixed Parts not saving.

This commit is contained in:
AlgorithmX2
2014-02-25 22:34:05 -06:00
parent 9575c8872c
commit 9161ad0c13
6 changed files with 30 additions and 8 deletions
+16 -1
View File
@@ -4,6 +4,7 @@ import java.util.List;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import appeng.client.texture.CableBusTextures;
import appeng.core.sync.GuiBridge;
import appeng.tile.inventory.AppEngInternalInventory;
@@ -15,6 +16,20 @@ public class PartCraftingTerminal extends PartTerminal implements IAEAppEngInven
AppEngInternalInventory craftingGrid = new AppEngInternalInventory( this, 9 );
@Override
public void writeToNBT(NBTTagCompound data)
{
super.writeToNBT( data );
craftingGrid.writeToNBT( data, "craftingGrid" );
}
@Override
public void readFromNBT(NBTTagCompound data)
{
super.readFromNBT( data );
craftingGrid.readFromNBT( data, "craftingGrid" );
}
@Override
public void getDrops(List<ItemStack> drops, boolean wrenched)
{
@@ -39,7 +54,7 @@ public class PartCraftingTerminal extends PartTerminal implements IAEAppEngInven
@Override
public void onChangeInventory(IInventory inv, int slot, InvOperation mc, ItemStack removedStack, ItemStack newStack)
{
// :)
host.markForSave();
}
@Override