diff --git a/src/main/java/com/simibubi/create/AllItems.java b/src/main/java/com/simibubi/create/AllItems.java index c0d9bf80e..4a22a4062 100644 --- a/src/main/java/com/simibubi/create/AllItems.java +++ b/src/main/java/com/simibubi/create/AllItems.java @@ -116,7 +116,7 @@ public class AllItems { .register(); public static final ItemEntry VERTICAL_GEARBOX = REGISTRATE.item("vertical_gearbox", VerticalGearboxItem::new) - .model(AssetLookup.customItemModel("gearbox", "item_vertical")) + .model(AssetLookup.customItemModel("gearbox", "item_vertical")) .register(); public static final ItemEntry SUPER_GLUE = REGISTRATE.item("super_glue", SuperGlueItem::new) diff --git a/src/main/java/com/simibubi/create/foundation/data/AssetLookup.java b/src/main/java/com/simibubi/create/foundation/data/AssetLookup.java index 33a940420..80a0b8c6f 100644 --- a/src/main/java/com/simibubi/create/foundation/data/AssetLookup.java +++ b/src/main/java/com/simibubi/create/foundation/data/AssetLookup.java @@ -46,7 +46,7 @@ public class AssetLookup { * Generate item model inheriting from a seperate model in * models/block/x/item.json */ - public static ItemModelBuilder customItemModel(DataGenContext ctx, + public static ItemModelBuilder customItemModel(DataGenContext ctx, RegistrateItemModelProvider prov) { return prov.blockItem(() -> ctx.getEntry() .getBlock(), "/item"); diff --git a/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java b/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java index c318b77cc..eea64aad1 100644 --- a/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java +++ b/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java @@ -135,8 +135,9 @@ public class CreateRegistrate extends AbstractRegistrate { public static NonNullUnaryOperator> customRenderedItem( Supplier> func) { - return b -> b.properties(p -> p.setISTER(() -> func.get() - .apply(null)::createRenderer)) + return b -> b.properties(p -> p.setISTER(() -> () -> func.get() + .apply(null) + .createRenderer())) .onRegister(entry -> onClient(() -> () -> registerCustomRenderedItem(entry, func))); }