Fixed tests
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user