mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-11 13:04:05 +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())
|
||||
builder.item()
|
||||
.transform(CreateRegistrate.itemColors(() -> AllColorHandlers::getGrassyItem)::apply)
|
||||
.build();
|
||||
.transform(CreateRegistrate.itemColors(() -> AllColorHandlers::getGrassyItem));
|
||||
else
|
||||
builder.simpleItem();
|
||||
|
||||
|
@ -124,9 +124,10 @@ public class CreateRegistrate extends AbstractRegistrate<CreateRegistrate> {
|
||||
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) {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user