Allow looking up recipes in JEI with non-item slots (#451)

This commit is contained in:
Yang Xizhi
2024-06-18 16:14:20 +08:00
committed by GitHub
parent 1316f035cd
commit 0a7799a664
6 changed files with 69 additions and 2 deletions
@@ -99,4 +99,9 @@ public class GuiFluidSlot extends GuiCustomSlot implements IJEITargetSlot {
return this.getFluidStack() == null;
}
@Override
public Object getIngredient() {
return this.getFluidStack() == null ? null : this.getFluidStack().getFluidStack();
}
}