From 8b879e98b45eb71d1418a0d793cb2ea470777e05 Mon Sep 17 00:00:00 2001 From: Technus Date: Sat, 28 Jan 2017 13:58:47 +0100 Subject: [PATCH] Add logger --- src/main/java/gregtech/loaders/misc/GT_Achievements.java | 3 ++- 1 file changed, 2 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 1d0afd72..b11e98fc 100644 --- a/src/main/java/gregtech/loaders/misc/GT_Achievements.java +++ b/src/main/java/gregtech/loaders/misc/GT_Achievements.java @@ -212,7 +212,8 @@ public class GT_Achievements { public static void registerOre(Materials aMaterial, int min, int max, int chance, boolean overworld, boolean nether, boolean end) { if (aMaterial != Materials._NULL) { - oreList.add(aMaterial); + //oreList.add(aMaterial); + if(!oreList.add(aMaterial)) GT_Log.err.println("GT Achievement - Ore with that (" + aMaterial.name() + ") material already exists."); } oreStats.add(new Integer[]{min, max, chance, overworld ? 1 : 0, nether ? 1 : 0, end ? 1 : 0}); }