Detector without filter should detect total storage count, fixes #436
This commit is contained in:
@@ -134,7 +134,7 @@ public class TileDetector extends TileNode implements IComparable, IType {
|
|||||||
powered = isPowered(stack == null ? null : stack.stackSize);
|
powered = isPowered(stack == null ? null : stack.stackSize);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
powered = mode == MODE_AUTOCRAFTING && !network.getCraftingTasks().isEmpty();
|
powered = mode == MODE_AUTOCRAFTING ? !network.getCraftingTasks().isEmpty() : isPowered(network.getItemStorage().getList().getStacks().stream().map(s -> s.stackSize).mapToInt(Number::intValue).sum());
|
||||||
}
|
}
|
||||||
} else if (type == IType.FLUIDS) {
|
} else if (type == IType.FLUIDS) {
|
||||||
FluidStack slot = fluidFilters.getFluidStackInSlot(0);
|
FluidStack slot = fluidFilters.getFluidStackInSlot(0);
|
||||||
@@ -144,7 +144,7 @@ public class TileDetector extends TileNode implements IComparable, IType {
|
|||||||
|
|
||||||
powered = isPowered(stack == null ? null : stack.amount);
|
powered = isPowered(stack == null ? null : stack.amount);
|
||||||
} else {
|
} else {
|
||||||
powered = false;
|
powered = isPowered(network.getFluidStorage().getStacks().stream().map(s -> s.amount).mapToInt(Number::intValue).sum());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user