avoid fake player crash

This commit is contained in:
Slind14 committed 2014-11-15 16:53:47 +01:00
1 parent 8ba9eea615
commit 36ac78d67a
1 file changed
+1 -1
@@ -31,7 +31,7 @@ public class HeartCanister extends CraftingItem implements IHealthAccessory
if (!world.isRemote && meta == 2)
{
TPlayerStats stats = TPlayerStats.get(player);
if (stats != null)
if (stats != null && stats.armor != null)
{
ArmorExtended armor = stats.armor;
ItemStack slotStack = armor.getStackInSlot(6);