Fix build error

This commit is contained in:
Snownee 2020-05-09 01:05:56 +08:00
parent 6d67c6e30b
commit 505b251132

View file

@ -54,7 +54,7 @@ public class BlockStateGen {
*/ */
public static ItemModelBuilder customItemModel(@NonnullType DataGenContext<Item, ? extends BlockItem> ctx, public static ItemModelBuilder customItemModel(@NonnullType DataGenContext<Item, ? extends BlockItem> ctx,
@NonnullType RegistrateItemModelProvider prov) { @NonnullType RegistrateItemModelProvider prov) {
return prov.blockItem(ctx.getEntry()::getBlock, "/item"); return prov.blockItem(() -> ctx.getEntry().getBlock(), "/item");
} }
} }