allow custom slot jei check and fix fluid color in cell workbanch (#401)

This commit is contained in:
Yang Xizhi
2024-02-19 13:06:07 +08:00
committed by GitHub
parent 20a1fec6fb
commit 7ebb2a0fbb
6 changed files with 44 additions and 22 deletions
@@ -93,4 +93,10 @@ public class GuiFluidSlot extends GuiCustomSlot implements IJEITargetSlot {
this.fluids.setFluidInSlot(this.slot, stack);
NetworkHandler.instance().sendToServer(new PacketFluidSlot(Collections.singletonMap(this.getId(), this.getFluidStack())));
}
@Override
public boolean needAccept() {
return this.getFluidStack() == null;
}
}