From 85a30afc2b3b9137324fe18fbcc6b980f4bc1228 Mon Sep 17 00:00:00 2001 From: simibubi <31564874+simibubi@users.noreply.github.com> Date: Mon, 25 May 2020 13:34:25 +0200 Subject: [PATCH] Fix build issues outside IDE --- .../create/content/palettes/PalettesVariantEntry.java | 3 +-- .../simibubi/create/foundation/data/CreateRegistrate.java | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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) {