Merge pull request #1167 from Slind14/master

avoid fake player crash
This commit is contained in:
boni committed 2014-11-15 19:07:01 +01:00
commit d15c6a5f98
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);