mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 06:24:12 +01:00
Fix build issues outside IDE
This commit is contained in:
parent
67f88e666c
commit
85a30afc2b
@ -44,8 +44,7 @@ public class PalettesVariantEntry {
|
|||||||
|
|
||||||
if (pattern.hasFoliage())
|
if (pattern.hasFoliage())
|
||||||
builder.item()
|
builder.item()
|
||||||
.transform(CreateRegistrate.itemColors(() -> AllColorHandlers::getGrassyItem)::apply)
|
.transform(CreateRegistrate.itemColors(() -> AllColorHandlers::getGrassyItem));
|
||||||
.build();
|
|
||||||
else
|
else
|
||||||
builder.simpleItem();
|
builder.simpleItem();
|
||||||
|
|
||||||
|
@ -124,9 +124,10 @@ public class CreateRegistrate extends AbstractRegistrate<CreateRegistrate> {
|
|||||||
return b -> b.onRegister(entry -> onClient(() -> () -> registerBlockVertexColor(entry, colorFunc)));
|
return b -> b.onRegister(entry -> onClient(() -> () -> registerBlockVertexColor(entry, colorFunc)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static NonNullUnaryOperator<ItemBuilder<? extends BlockItem, ?>> itemColors(
|
public static <I extends BlockItem, P> NonNullFunction<ItemBuilder<I, P>, P> itemColors(
|
||||||
Supplier<Supplier<IItemColor>> colorFunc) {
|
Supplier<Supplier<IItemColor>> 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<Runnable> toRun) {
|
protected static void onClient(Supplier<Runnable> toRun) {
|
||||||
|
Loading…
Reference in New Issue
Block a user