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:
authored and GitHub committed 2025-11-06 18:59:28 +01:00
1 parent e4736f01d0
commit 51ca821852
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;