diff --git a/core/src/mindustry/world/blocks/power/BeamNode.java b/core/src/mindustry/world/blocks/power/BeamNode.java index f08131d290..f943c5f249 100644 --- a/core/src/mindustry/world/blocks/power/BeamNode.java +++ b/core/src/mindustry/world/blocks/power/BeamNode.java @@ -1,5 +1,6 @@ package mindustry.world.blocks.power; +import arc.Core; import arc.graphics.*; import arc.graphics.g2d.*; import arc.math.*; @@ -22,8 +23,8 @@ import static mindustry.Vars.*; public class BeamNode extends PowerBlock{ public int range = 5; - public @Load("power-beam") TextureRegion laser; - public @Load("power-beam-end") TextureRegion laserEnd; + public @Load(value = "@-beam", fallback = "power-beam") TextureRegion laser; + public @Load(value = "@-beam-end", fallback = "power-beam-end") TextureRegion laserEnd; public Color laserColor1 = Color.white; public Color laserColor2 = Color.valueOf("ffd9c2"); diff --git a/core/src/mindustry/world/blocks/power/LongPowerNode.java b/core/src/mindustry/world/blocks/power/LongPowerNode.java index 3af930337e..fde8cd2a78 100644 --- a/core/src/mindustry/world/blocks/power/LongPowerNode.java +++ b/core/src/mindustry/world/blocks/power/LongPowerNode.java @@ -22,8 +22,8 @@ public class LongPowerNode extends PowerNode{ public void load(){ super.load(); - laser = Core.atlas.find("power-beam"); - laserEnd = Core.atlas.find("power-beam-end"); + laser = Core.atlas.find(name + "-beam", Core.atlas.find("power-beam")); + laserEnd = Core.atlas.find(name + "-beam-end", Core.atlas.find("power-beam-end")); } public class LongPowerNodeBuild extends PowerNodeBuild{ diff --git a/core/src/mindustry/world/blocks/power/PowerNode.java b/core/src/mindustry/world/blocks/power/PowerNode.java index c75acd047d..47476a2e95 100644 --- a/core/src/mindustry/world/blocks/power/PowerNode.java +++ b/core/src/mindustry/world/blocks/power/PowerNode.java @@ -29,8 +29,8 @@ public class PowerNode extends PowerBlock{ /** The maximum range of all power nodes on the map */ protected static float maxRange; - public @Load("laser") TextureRegion laser; - public @Load("laser-end") TextureRegion laserEnd; + public @Load(value = "@-laser", fallback = "laser") TextureRegion laser; + public @Load(value = "@-laser-end", fallback = "laser-end") TextureRegion laserEnd; public float laserRange = 6; public int maxNodes = 3; public boolean autolink = true, drawRange = true; diff --git a/core/src/mindustry/world/blocks/units/UnitFactory.java b/core/src/mindustry/world/blocks/units/UnitFactory.java index 86ab061a83..0f4293cb83 100644 --- a/core/src/mindustry/world/blocks/units/UnitFactory.java +++ b/core/src/mindustry/world/blocks/units/UnitFactory.java @@ -122,7 +122,7 @@ public class UnitFactory extends UnitBlock{ } if(plan.unit.unlockedNow()){ - t.image(plan.unit.uiIcon).size(40).pad(10f).left(); + t.image(plan.unit.uiIcon).size(40).pad(10f).left().scaling(Scaling.fit); t.table(info -> { info.add(plan.unit.localizedName).left(); info.row();