From 43ca3ca210149aa02e5d487c8f3600cf1d7f7e19 Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 21 Jul 2020 19:51:57 -0400 Subject: [PATCH] Correct flow rate scaling --- core/src/mindustry/world/modules/ItemModule.java | 2 +- core/src/mindustry/world/modules/LiquidModule.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/world/modules/ItemModule.java b/core/src/mindustry/world/modules/ItemModule.java index ead9f73505..c358b42e2d 100644 --- a/core/src/mindustry/world/modules/ItemModule.java +++ b/core/src/mindustry/world/modules/ItemModule.java @@ -88,7 +88,7 @@ public class ItemModule extends BlockModule{ public float getFlowRate(Item item){ if(flow == null) return -1f; - return displayFlow[item.id] * 60; + return displayFlow[item.id] * 60 / Time.delta; } public boolean hasFlowItem(Item item){ diff --git a/core/src/mindustry/world/modules/LiquidModule.java b/core/src/mindustry/world/modules/LiquidModule.java index 443947727d..0a2e244c59 100644 --- a/core/src/mindustry/world/modules/LiquidModule.java +++ b/core/src/mindustry/world/modules/LiquidModule.java @@ -39,7 +39,7 @@ public class LiquidModule extends BlockModule{ /** @return current liquid's flow rate in u/s; any value < 0 means 'not ready'. */ public float getFlowRate(){ - return currentFlowRate * 60; + return currentFlowRate * 60 / Time.delta; } public float smoothAmount(){