diff --git a/src/main/java/com/simibubi/create/content/palettes/PalettesVariantEntry.java b/src/main/java/com/simibubi/create/content/palettes/PalettesVariantEntry.java index 3bfd287f3..0e53e1833 100644 --- a/src/main/java/com/simibubi/create/content/palettes/PalettesVariantEntry.java +++ b/src/main/java/com/simibubi/create/content/palettes/PalettesVariantEntry.java @@ -44,8 +44,7 @@ public class PalettesVariantEntry { if (pattern.hasFoliage()) builder.item() - .transform(CreateRegistrate.itemColors(() -> AllColorHandlers::getGrassyItem)::apply) - .build(); + .transform(CreateRegistrate.itemColors(() -> AllColorHandlers::getGrassyItem)); else builder.simpleItem(); 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 e353b6e77..c88894741 100644 --- a/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java +++ b/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java @@ -124,9 +124,10 @@ public class CreateRegistrate extends AbstractRegistrate { return b -> b.onRegister(entry -> onClient(() -> () -> registerBlockVertexColor(entry, colorFunc))); } - public static NonNullUnaryOperator> itemColors( + public static NonNullFunction, P> itemColors( Supplier> colorFunc) { - return b -> b.onRegister(entry -> onClient(() -> () -> registerItemColor(entry, colorFunc))); + return b -> b.onRegister(entry -> onClient(() -> () -> registerItemColor(entry, colorFunc))) + .build(); } protected static void onClient(Supplier toRun) {