From b4e79286222f6c9c3077dd6583c58813184910ce Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 7 Dec 2020 12:12:08 -0500 Subject: [PATCH] Test fixes --- tests/src/test/java/power/PowerTests.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/test/java/power/PowerTests.java b/tests/src/test/java/power/PowerTests.java index 196ab2b595..af90f1d762 100644 --- a/tests/src/test/java/power/PowerTests.java +++ b/tests/src/test/java/power/PowerTests.java @@ -55,7 +55,7 @@ public class PowerTests extends PowerTestFixture{ void simulateDirectConsumption(float producedPower, float requiredPower, float expectedSatisfaction, String parameterDescription){ Tile producerTile = createFakeTile(0, 0, createFakeProducerBlock(producedPower)); - producerTile.bc().productionEfficiency = 1f; + ((GeneratorBuild)producerTile.build).productionEfficiency = 1f; Tile directConsumerTile = createFakeTile(0, 1, createFakeDirectConsumer(requiredPower)); PowerGraph powerGraph = new PowerGraph(); @@ -95,7 +95,7 @@ public class PowerTests extends PowerTestFixture{ if(producedPower > 0.0f){ Tile producerTile = createFakeTile(0, 0, createFakeProducerBlock(producedPower)); - producerTile.bc().productionEfficiency = 1f; + ((GeneratorBuild)producerTile.build).productionEfficiency = 1f; powerGraph.add(producerTile.build); } Tile directConsumerTile = null; @@ -120,7 +120,7 @@ public class PowerTests extends PowerTestFixture{ @Test void directConsumptionStopsWithNoPower(){ Tile producerTile = createFakeTile(0, 0, createFakeProducerBlock(10.0f)); - producerTile.bc().productionEfficiency = 1.0f; + ((GeneratorBuild)producerTile.build).productionEfficiency = 1.0f; Tile consumerTile = createFakeTile(0, 1, createFakeDirectConsumer(5.0f)); PowerGraph powerGraph = new PowerGraph();