diff --git a/src/main/java/net/minecraftforge/registries/RegistryBuilder.java b/src/main/java/net/minecraftforge/registries/RegistryBuilder.java index 8bdfe7aac..c9a906266 100644 --- a/src/main/java/net/minecraftforge/registries/RegistryBuilder.java +++ b/src/main/java/net/minecraftforge/registries/RegistryBuilder.java @@ -34,7 +34,7 @@ public class RegistryBuilder> private Class registryType; private ResourceLocation optionalDefaultKey; private int minId = 0; - private int maxId = Integer.MAX_VALUE; + private int maxId = Integer.MAX_VALUE - 1; private List> addCallback = Lists.newArrayList(); private List> clearCallback = Lists.newArrayList(); private List> createCallback = Lists.newArrayList();