Crates can now be stacked to 64
That is if they are empty
This commit is contained in:
parent
403c8431f8
commit
6110377655
1 changed files with 9 additions and 3 deletions
|
@ -16,7 +16,6 @@ public class ItemBlockCrate extends ItemBlock
|
|||
public ItemBlockCrate(int par1)
|
||||
{
|
||||
super(par1);
|
||||
this.setMaxStackSize(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -35,10 +34,17 @@ public class ItemBlockCrate extends ItemBlock
|
|||
par3List.add(containingStack.getDisplayName());
|
||||
par3List.add("Amount: " + containingStack.stackSize);
|
||||
}
|
||||
else
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemStackLimit(ItemStack stack)
|
||||
{
|
||||
ItemStack containingStack = getContainingItemStack(stack);
|
||||
if (containingStack != null)
|
||||
{
|
||||
par3List.add("Empty");
|
||||
return 1;
|
||||
}
|
||||
return super.getItemStackLimit();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue