Add logger

This commit is contained in:
Technus 2017-01-28 13:58:47 +01:00
parent 7dea0b4784
commit 8b879e98b4

View file

@ -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) { public static void registerOre(Materials aMaterial, int min, int max, int chance, boolean overworld, boolean nether, boolean end) {
if (aMaterial != Materials._NULL) { 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}); oreStats.add(new Integer[]{min, max, chance, overworld ? 1 : 0, nether ? 1 : 0, end ? 1 : 0});
} }