From fac3fa7301e6509fb41897fa1659f11ef9d07d67 Mon Sep 17 00:00:00 2001 From: Technus Date: Sun, 29 Jan 2017 09:50:40 +0100 Subject: [PATCH] this should find it? --- src/main/java/gregtech/loaders/misc/GT_Achievements.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/loaders/misc/GT_Achievements.java b/src/main/java/gregtech/loaders/misc/GT_Achievements.java index 502be8df..60cba6c9 100644 --- a/src/main/java/gregtech/loaders/misc/GT_Achievements.java +++ b/src/main/java/gregtech/loaders/misc/GT_Achievements.java @@ -73,7 +73,12 @@ public class GT_Achievements { } GT_Log.out.println("achievement." + oreList.get(i).name() + ".desc=Height: " + (oreStats.get(i)[0]) + "-" + (oreStats.get(i)[1]) + ", Chance: " + (oreStats.get(i)[2]) + ", " + dimensions.toString()); } - registerOreAchievement(oreList.get(i)); + if(oreList.get(i)==null) + GT_Log.out.println("GT Achievement - Ore with NULL pointer material tries to register achievement."); + if(oreList.get(i).name()==null) + GT_Log.out.println("GT Achievement - Ore with NULL named material tries to register achievement."); + else + registerOreAchievement(oreList.get(i)); } for(GT_Recipe recipe: GT_Recipe.GT_Recipe_Map.sAssemblylineFakeRecipes.mRecipeList)