mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-28 15:36:17 +00:00
Don't assign an id of 0 to a potion (#42)
Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: Alexdoru <[email protected]>
This commit is contained in:
1 file changed
+1
-1
@@ -47,7 +47,7 @@ public class RegisteredPotions {
|
||||
private static <T extends Potion> T registerPotion(Class<T> potionClass) {
|
||||
int id = ModConfig.loadPotionId(potionClass.getSimpleName());
|
||||
if (id == -1) {
|
||||
for (int i = 0; i < Potion.potionTypes.length; i++) {
|
||||
for (int i = 1; i < Potion.potionTypes.length; i++) {
|
||||
if (Potion.potionTypes[i] == null) {
|
||||
id = i;
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user