From 761728ac438a05870b9dfcb3b1fc95c958be6db1 Mon Sep 17 00:00:00 2001 From: Timmeey86 Date: Wed, 21 Nov 2018 23:04:18 +0100 Subject: [PATCH] Fixed the ConsumePower constructors which got mixed up at some point --- .../io/anuke/mindustry/world/consumers/ConsumePower.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/src/io/anuke/mindustry/world/consumers/ConsumePower.java b/core/src/io/anuke/mindustry/world/consumers/ConsumePower.java index 4129f3345c..9aec5498de 100644 --- a/core/src/io/anuke/mindustry/world/consumers/ConsumePower.java +++ b/core/src/io/anuke/mindustry/world/consumers/ConsumePower.java @@ -31,8 +31,8 @@ public class ConsumePower extends Consume{ * @param powerPerTick The maximum amount of power which is required per tick for 100% efficiency. * @param minimumSatisfaction The percentage of powerPerTick which must be available for the module to work. */ - public static ConsumePower consumePowerBuffered(float powerPerTick, float minimumSatisfaction){ - return new ConsumePower(powerPerTick, minimumSatisfaction, 0.0f, true); + public static ConsumePower consumePowerDirect(float powerPerTick, float minimumSatisfaction){ + return new ConsumePower(powerPerTick, minimumSatisfaction, 0.0f, false); } /** @@ -41,8 +41,8 @@ public class ConsumePower extends Consume{ * @param powerCapacity The maximum capacity in power units. * @param ticksToFill The number of ticks it shall take to fill the buffer. */ - public static ConsumePower consumePowerDirect(float powerCapacity, float ticksToFill){ - return new ConsumePower(powerCapacity / ticksToFill, 0.0f, powerCapacity, false); + public static ConsumePower consumePowerBuffered(float powerCapacity, float ticksToFill){ + return new ConsumePower(powerCapacity / ticksToFill, 0.0f, powerCapacity, true); } @Override