-Potion fix 2

This commit is contained in:
makeo committed 2016-01-11 22:29:31 +01:00
1 parent 6064a23f4f
commit 577df8e2ed
1 file changed
-2
@@ -37,7 +37,6 @@ public class RegisteredPotions {
private static <T extends Potion> T registerPotion(Class<T> potionClass) {
int id = ModConfig.loadPotionId(potionClass.getSimpleName());
if(id == -1) {
id = Potion.potionTypes.length;
for(int i = 0; i < Potion.potionTypes.length; i++) {
if(Potion.potionTypes[i] == null) {
id = i;
@@ -48,7 +47,6 @@ public class RegisteredPotions {
id = Potion.potionTypes.length;
FMLLog.warning("Gadomancy could not find a free potion id and will extend the potionTypes array! This might cause fatal errors. Please consider changing the config!");
}
}
if(id > 127) {