We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eea4ef6 commit 781f7c1Copy full SHA for 781f7c1
src/main/java/gregtech/api/mui/sync/GTFluidSyncHandler.java
@@ -55,7 +55,7 @@ public void detectAndSendChanges(boolean init) {
55
}
56
57
public void lockFluid(FluidStack stack) {
58
- final var f = stack != null && stack.amount < 1 ? null : stack;
+ final var f = stack == null || stack.amount < 1 ? null : stack;
59
this.onLocked.accept(f);
60
this.phantomFluid = f;
61
syncToServer(LOCK_FLUID, buffer -> NetworkUtils.writeFluidStack(buffer, f));
0 commit comments