From 5f4d4c1008a7a5941f6ad4018f2dabcc5c55e06e Mon Sep 17 00:00:00 2001 From: Jaroslaw Szczesniewski Date: Sun, 22 Sep 2013 01:24:51 +0200 Subject: [PATCH] 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. --- common/buildcraft/transport/triggers/TriggerPipeContents.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/transport/triggers/TriggerPipeContents.java b/common/buildcraft/transport/triggers/TriggerPipeContents.java index 4b4bce49..1e8fa321 100644 --- a/common/buildcraft/transport/triggers/TriggerPipeContents.java +++ b/common/buildcraft/transport/triggers/TriggerPipeContents.java @@ -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; }