Fixed fluid emitter when there is no filter in it (#199)

This commit is contained in:
claimg authored and GitHub committed 2024-03-22 18:02:26 +01:00
1 parent a231e67167
commit 300f01be8b
1 file changed
+5
@@ -190,6 +190,11 @@ public class PartFluidLevelEmitter extends PartUpgradeable implements IStackWatc
if (this.myWatcher != null && myStack != null) {
this.myWatcher.add(myStack);
}
if (myStack == null) {
this.getProxy().getStorage().getFluidInventory().addListener(this, this.getProxy().getGrid());
}
this.updateReportingValue(this.getProxy().getStorage().getFluidInventory());
} catch (final GridAccessException ignored) {}
}