Skip to content

Commit

Permalink
Show time remaining correctly on unit assemblers
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaM314 committed Jan 16, 2025
1 parent 328a830 commit 35e6852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/world/blocks/units/UnitAssembler.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void setBars(){
super.setBars();

addBar("progress", (UnitAssemblerBuild e) -> new Bar(
() -> Core.bundle.format("bar.progresstime", UI.formatTime(e.plan().time * (1 - e.progress))),
() -> Core.bundle.format("bar.progresstime", UI.formatTime(e.plan().time * (1 - e.progress) / e.timeScale() / state.rules.unitBuildSpeedMultiplier)),
() -> Pal.ammo,
() -> e.progress));

Expand Down

1 comment on commit 35e6852

@buthed010203
Copy link
Member

@buthed010203 buthed010203 commented on 35e6852 Jan 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be using team unit build speed instead of the global value.

Please sign in to comment.