mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-25 16:38:33 +01:00
Fix Fluid Placer not inheriting the ticking of the Fluid Collector
This commit is contained in:
parent
fd92ee8514
commit
e4fdc6d7da
1 changed files with 19 additions and 15 deletions
|
@ -175,27 +175,31 @@ public class TileEntityFluidCollector extends TileEntityBase implements ISharing
|
||||||
public static <T extends BlockEntity> void serverTick(Level level, BlockPos pos, BlockState state, T t) {
|
public static <T extends BlockEntity> void serverTick(Level level, BlockPos pos, BlockState state, T t) {
|
||||||
if (t instanceof TileEntityFluidCollector tile) {
|
if (t instanceof TileEntityFluidCollector tile) {
|
||||||
tile.serverTick();
|
tile.serverTick();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!tile.isRedstonePowered && !tile.isPulseMode) {
|
@Override
|
||||||
if (tile.currentTime > 0) {
|
protected void serverTick() {
|
||||||
tile.currentTime--;
|
super.serverTick();
|
||||||
if (tile.currentTime <= 0) {
|
if (!isRedstonePowered && !isPulseMode) {
|
||||||
tile.doWork();
|
if (currentTime > 0) {
|
||||||
}
|
currentTime--;
|
||||||
} else {
|
if (currentTime <= 0) {
|
||||||
tile.currentTime = 15;
|
doWork();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
currentTime = 15;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (tile.lastCompare != tile.getComparatorStrength()) {
|
if (lastCompare != getComparatorStrength()) {
|
||||||
tile.lastCompare = tile.getComparatorStrength();
|
lastCompare = getComparatorStrength();
|
||||||
|
|
||||||
tile.setChanged();
|
setChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tile.lastTankAmount != tile.tank.getFluidAmount() && tile.sendUpdateWithInterval()) {
|
if (lastTankAmount != tank.getFluidAmount() && sendUpdateWithInterval()) {
|
||||||
tile.lastTankAmount = tile.tank.getFluidAmount();
|
lastTankAmount = tank.getFluidAmount();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue