Fix for kinesis pipes content triggers

Due to smoothing s>0 will always be true. All float values higher than 0
will work, however the lower the value, the longer the delay. Tested
with 1 stirling engine powering 16 pumps, s>0.001 caused flickering in
this case.
This commit is contained in:
Jaroslaw Szczesniewski 2013-09-22 01:24:51 +02:00
parent ebdf3868f1
commit 5f4d4c1008

View file

@ -129,14 +129,14 @@ public class TriggerPipeContents extends BCTrigger implements ITriggerPipe {
switch (kind) {
case Empty:
for (double s : transportPower.displayPower) {
if (s > 0)
if (s > 1e-4)
return false;
}
return true;
case ContainsEnergy:
for (double s : transportPower.displayPower) {
if (s > 0)
if (s > 1e-4)
return true;
}