Protect vs Null container Items.

This commit is contained in:
AlgorithmX2 2014-09-04 21:58:10 -05:00
parent 44f86fefa0
commit b86e728f04

View file

@ -1681,7 +1681,7 @@ public class Platform
}
ItemStack ci = i.getContainerItem( stackInSlot.copy() );
if ( ci.isItemStackDamageable() && ci.getItemDamage() == ci.getMaxDamage() )
if ( ci != null && ci.isItemStackDamageable() && ci.getItemDamage() == ci.getMaxDamage() )
ci = null;
return ci;