No more errors, the game launches, rejoice!

This commit is contained in:
aidancbrady committed 2016-05-26 03:14:44 -04:00
1 parent 79af86daae
commit ceec3e71e9
67 files changed
+951 -676

No files matched your search

@@ -6,6 +6,7 @@ import net.minecraft.inventory.InventoryBasic;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.util.EnumHand;
public class InventoryPersonalChest extends InventoryBasic
{
@@ -13,11 +14,14 @@ public class InventoryPersonalChest extends InventoryBasic
public ItemStack itemStack;
public boolean reading;
public EnumHand currentHand = EnumHand.MAIN_HAND;
public InventoryPersonalChest(EntityPlayer player)
public InventoryPersonalChest(EntityPlayer player, EnumHand hand)
{
super("PersonalChest", false, 55);
entityPlayer = player;
currentHand = hand;
read();
}
@@ -104,6 +108,6 @@ public class InventoryPersonalChest extends InventoryBasic
public ItemStack getStack()
{
return itemStack != null ? itemStack : entityPlayer.getCurrentEquippedItem();
return itemStack != null ? itemStack : entityPlayer.getHeldItem(currentHand);
}
}