Skip to content

Commit

Permalink
avoid fake player crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Slind14 committed Nov 15, 2014
1 parent 8ba9eea commit 36ac78d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/armor/items/HeartCanister.java
Expand Up @@ -31,7 +31,7 @@ public ItemStack onItemRightClick (ItemStack stack, World world, EntityPlayer pl
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);
Expand Down

0 comments on commit 36ac78d

Please sign in to comment.