mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 08:54:12 +00:00
Additional null check on stats.armor
This commit is contained in:
1 parent
9874908e97
commit
5d78b96352
1 file changed
+1
-1
@@ -621,7 +621,7 @@ public class TEventHandler
|
||||
EntityPlayer player = (EntityPlayer) event.entityLiving;
|
||||
TPlayerStats stats = TConstruct.playerTracker.getPlayerStats(player.getDisplayName());
|
||||
|
||||
if (stats != null)
|
||||
if (stats != null && stats.armor != null)
|
||||
{
|
||||
ArmorExtended armor = stats.armor;
|
||||
for (int i = 0; i < armor.getSizeInventory(); i++)
|
||||
|
||||
Reference in new issue
Block a user