An experiment

This commit is contained in:
Anuken
2021-10-20 14:30:06 -04:00
parent a21f6d335f
commit 4436a5ced9
10 changed files with 55 additions and 9 deletions
@@ -68,7 +68,8 @@ public class ConsumePower extends Consume{
* @return The amount of power which is requested per tick.
*/
public float requestedPower(Building entity){
if(entity.tile == null || entity.tile.build == null) return 0f;
if(entity == null) return 0f;
if(buffered){
return (1f-entity.power.status)*capacity;
}else{