Skip to content

Commit

Permalink
Added fluid wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
LatvianModder committed Nov 10, 2023
1 parent c66ded5 commit 323ad60
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -3,6 +3,7 @@
import dev.architectury.event.Event;
import dev.architectury.event.EventFactory;
import dev.latvian.mods.kubejs.core.IngredientKJS;
import dev.latvian.mods.kubejs.fluid.FluidStackJS;
import dev.latvian.mods.kubejs.item.ingredient.IngredientJS;
import me.shedaniel.rei.api.common.entry.type.EntryType;
import me.shedaniel.rei.api.common.entry.type.VanillaEntryTypes;
@@ -23,7 +24,7 @@ public class REIEntryWrappers {
public REIEntryWrappers() {
this.entryWrappers = new HashMap<>();
add(VanillaEntryTypes.ITEM, IngredientJS::of, Function.identity(), IngredientKJS::kjs$getDisplayStacks);
// add(VanillaEntryTypes.FLUID, o -> FluidStackJS.of(o));
add(VanillaEntryTypes.FLUID, o -> FluidStackJS.of(o).getFluidStack(), fs -> fs::isFluidEqual, List::of);
EVENT.invoker().accept(this);
}

0 comments on commit 323ad60

Please sign in to comment.