mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-09 18:52:31 -08:00
Fixed tests
This commit is contained in:
parent
01e3912827
commit
8fde8695d0
1 changed files with 7 additions and 0 deletions
|
|
@ -91,6 +91,13 @@ public class PowerTestFixture{
|
|||
if(block.hasLiquids) tile.entity.liquids = new LiquidModule();
|
||||
if(block.hasPower){
|
||||
tile.entity.power = new PowerModule();
|
||||
tile.entity.power.graph = new PowerGraph(){
|
||||
//assume there's always something consuming power
|
||||
@Override
|
||||
public float getUsageFraction(){
|
||||
return 1f;
|
||||
}
|
||||
};
|
||||
tile.entity.power.graph.add(tile);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue