mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 22:42:41 -08:00
the errors are back
This commit is contained in:
parent
eb0ea9030b
commit
84748afc55
48 changed files with 169 additions and 157 deletions
|
|
@ -88,7 +88,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{
|
|||
assertTrue(generator.acceptLiquid(tile, null, liquid, availableLiquidAmount), inputType + " | " + parameterDescription + ": Liquids which will be declined by the generator don't need to be tested - The code won't be called for those cases.");
|
||||
|
||||
entity.liquids().add(liquid, availableLiquidAmount);
|
||||
entity.cons.update();
|
||||
entity.cons().update();
|
||||
|
||||
// Perform an update on the generator once - This should use up any resource up to the maximum liquid usage
|
||||
generator.update(tile);
|
||||
|
|
@ -132,7 +132,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{
|
|||
if(amount > 0){
|
||||
entity.items().add(item, amount);
|
||||
}
|
||||
entity.cons.update();
|
||||
entity.cons().update();
|
||||
|
||||
// Perform an update on the generator once - This should use up one or zero items - dependent on if the item is accepted and available or not.
|
||||
try{
|
||||
|
|
@ -163,7 +163,7 @@ public class ItemLiquidGeneratorTests extends PowerTestFixture{
|
|||
|
||||
// Burn a single coal and test for the duration
|
||||
entity.items().add(Items.coal, 1);
|
||||
entity.cons.update();
|
||||
entity.cons().update();
|
||||
generator.update(tile);
|
||||
|
||||
float expectedEfficiency = entity.productionEfficiency;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue