diff --git a/core/src/mindustry/Vars.java b/core/src/mindustry/Vars.java index 4d5042ad68..e7804deea8 100644 --- a/core/src/mindustry/Vars.java +++ b/core/src/mindustry/Vars.java @@ -45,7 +45,7 @@ public class Vars implements Loadable{ /** Name of current Steam player. */ public static String steamPlayerName = ""; /** Default accessible content types used for player-selectable icons. */ - public static final ContentType[] defaultContentIcons = {ContentType.item, ContentType.liquid, ContentType.block}; + public static final ContentType[] defaultContentIcons = {ContentType.item, ContentType.liquid, ContentType.block, ContentType.unit}; /** Wall darkness radius. */ public static final int darkRadius = 4; /** Maximum extra padding around deployment schematics. */ diff --git a/core/src/mindustry/world/blocks/power/PowerGraph.java b/core/src/mindustry/world/blocks/power/PowerGraph.java index 5e5ff19022..80567af1ad 100644 --- a/core/src/mindustry/world/blocks/power/PowerGraph.java +++ b/core/src/mindustry/world/blocks/power/PowerGraph.java @@ -176,7 +176,7 @@ public class PowerGraph{ public void distributePower(float needed, float produced, boolean charged){ //distribute even if not needed. this is because some might be requiring power but not using it; it updates consumers - float coverage = Mathf.zero(needed) && Mathf.zero(produced) && !charged ? 0f : Mathf.zero(needed) ? 1f : Math.min(1, produced / needed); + float coverage = Mathf.zero(needed) && Mathf.zero(produced) && !charged && Mathf.zero(lastPowerStored) ? 0f : Mathf.zero(needed) ? 1f : Math.min(1, produced / needed); for(Building consumer : consumers){ Consumers consumes = consumer.block.consumes; if(consumes.hasPower()){