From 505b2511327d4a5c93cfb8b24b9841364ef403bc Mon Sep 17 00:00:00 2001 From: Snownee <1850986885@qq.com> Date: Sat, 9 May 2020 01:05:56 +0800 Subject: [PATCH] Fix build error --- .../simibubi/create/foundation/utility/data/BlockStateGen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/foundation/utility/data/BlockStateGen.java b/src/main/java/com/simibubi/create/foundation/utility/data/BlockStateGen.java index d3eaf3691..a54d5982c 100644 --- a/src/main/java/com/simibubi/create/foundation/utility/data/BlockStateGen.java +++ b/src/main/java/com/simibubi/create/foundation/utility/data/BlockStateGen.java @@ -54,7 +54,7 @@ public class BlockStateGen { */ public static ItemModelBuilder customItemModel(@NonnullType DataGenContext ctx, @NonnullType RegistrateItemModelProvider prov) { - return prov.blockItem(ctx.getEntry()::getBlock, "/item"); + return prov.blockItem(() -> ctx.getEntry().getBlock(), "/item"); } }