mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-21 20:42:12 +00:00
-Potion fix 2
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user