Fixed tests

This commit is contained in:
Anuken 2019-12-12 16:33:24 -05:00
parent 01e3912827
commit 8fde8695d0

View file

@ -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);
}