Fix formatting to use spaces instead

This commit is contained in:
ljfa-ag 2015-04-10 11:49:00 +02:00
parent 833858d064
commit 74930a9445

View file

@ -10,6 +10,7 @@ import net.minecraftforge.common.util.Constants;
/** /**
* Base class for tile entities with inventory * Base class for tile entities with inventory
*
* @author ljfa-ag * @author ljfa-ag
*/ */
public abstract class TEInventory extends TileEntity implements IInventory public abstract class TEInventory extends TileEntity implements IInventory
@ -135,13 +136,14 @@ public abstract class TEInventory extends TileEntity implements IInventory
public void readFromNBT(NBTTagCompound tag) public void readFromNBT(NBTTagCompound tag)
{ {
super.readFromNBT(tag); super.readFromNBT(tag);
NBTTagList invList = tag.getTagList("Inventory", Constants.NBT.TAG_COMPOUND); NBTTagList invList = tag.getTagList("Inventory",
for(int i = 0; i < invList.tagCount(); i++) Constants.NBT.TAG_COMPOUND);
for (int i = 0; i < invList.tagCount(); i++)
{ {
NBTTagCompound stackTag = invList.getCompoundTagAt(i); NBTTagCompound stackTag = invList.getCompoundTagAt(i);
int slot = stackTag.getByte("Slot"); int slot = stackTag.getByte("Slot");
if(slot >= 0 && slot < inv.length) if (slot >= 0 && slot < inv.length)
inv[slot] = ItemStack.loadItemStackFromNBT(stackTag); inv[slot] = ItemStack.loadItemStackFromNBT(stackTag);
} }
} }