Fixed enchanted items saving in crates
This commit is contained in:
parent
c736a84c9c
commit
0828930ddd
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ public class BlockCrate extends BlockAssembly
|
|||
{
|
||||
if (current != null && tileEntity.getSampleStack() == null)
|
||||
{
|
||||
BlockCrate.addStackToCrate(tileEntity, new ItemStack(current.itemID, TileEntityCrate.getSlotCount(world.getBlockMetadata(x, y, z)) * 64, current.getItemDamage()));
|
||||
ItemStack cStack = current.copy();
|
||||
cStack.stackSize = TileEntityCrate.getSlotCount(world.getBlockMetadata(x, y, z)) * 64;
|
||||
BlockCrate.addStackToCrate(tileEntity, cStack);
|
||||
}
|
||||
}
|
||||
// Add items
|
||||
|
|
Loading…
Reference in a new issue