Fixed issue raised in #1

This commit is contained in:
Rabbitminers 2023-05-01 16:13:51 +01:00
parent 6564f4fa73
commit c7e9df973c

View file

@ -21,14 +21,15 @@ public class BogeySizes {
BOGEY_SIZES.add(LARGE);
}
public static void addSize(String modId, String name, float size) {
public static BogeySize addSize(String modId, String name, float size) {
ResourceLocation location = new ResourceLocation(modId, name);
addSize(location, size);
return addSize(location, size);
}
public static void addSize(ResourceLocation location, float size) {
public static BogeySize addSize(ResourceLocation location, float size) {
BogeySize customSize = new BogeySize(location, size);
BOGEY_SIZES.add(customSize);
return customSize;
}
public static List<BogeySize> getAllSizesSmallToLarge() {