mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 00:07:29 +00:00
fix autofiller wont work after boot (#323)
Co-authored-by: NeOzay <colpaert.benoit@gmail.com> Co-authored-by: NeOzay <69015205+NeOzay@users.noreply.github.com>
This commit is contained in:
1 file changed
+9
-1
@@ -272,11 +272,19 @@ public class TileFluidAutoFiller extends AENetworkInvTile
|
||||
|
||||
@Override
|
||||
public TickingRequest getTickingRequest(IGridNode node) {
|
||||
return new TickingRequest(1, 5, this.returnStack == null, true);
|
||||
return new TickingRequest(1, 5, false, true);
|
||||
}
|
||||
|
||||
boolean initialized = false;
|
||||
|
||||
@Override
|
||||
public TickRateModulation tickingRequest(IGridNode node, int TicksSinceLastCall) {
|
||||
if (!initialized) { // run postEvent on AE network is ready
|
||||
initialized = true;
|
||||
postEvent();
|
||||
if (this.returnStack == null) return TickRateModulation.SLEEP;
|
||||
}
|
||||
|
||||
if (this.getStorageGrid() == null) {
|
||||
return TickRateModulation.SLOWER;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user