Add logger
This commit is contained in:
parent
7dea0b4784
commit
8b879e98b4
1 changed files with 2 additions and 1 deletions
|
@ -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});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue