From 9973a853cc7a04201ebc514c9b343d4be857ee4f Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Fri, 29 May 2020 00:19:47 +0200 Subject: [PATCH] Fix build issues outside IDE (again) --- src/main/java/com/simibubi/create/AllItems.java | 2 +- .../com/simibubi/create/foundation/data/AssetLookup.java | 2 +- .../simibubi/create/foundation/data/CreateRegistrate.java | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) 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))); }