Protect vs Null container Items.
This commit is contained in:
parent
44f86fefa0
commit
b86e728f04
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue