Fix error when using RegistryBuilder and not specifying a max id number.

This commit is contained in:
LexManos 2017-06-27 15:18:03 -07:00
parent c565984822
commit cab4f783e9

View file

@ -34,7 +34,7 @@ public class RegistryBuilder<T extends IForgeRegistryEntry<T>>
private Class<T> registryType;
private ResourceLocation optionalDefaultKey;
private int minId = 0;
private int maxId = Integer.MAX_VALUE;
private int maxId = Integer.MAX_VALUE - 1;
private List<AddCallback<T>> addCallback = Lists.newArrayList();
private List<ClearCallback<T>> clearCallback = Lists.newArrayList();
private List<CreateCallback<T>> createCallback = Lists.newArrayList();