mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-09 15:27:45 +07:00
Scale foobar correctly with different capacities
This commit is contained in:
@ -83,7 +83,7 @@ public class CraterConveyor extends BaseConveyor{
|
||||
|
||||
// draw resource
|
||||
float size = itemSize / 2f;
|
||||
size += entity.items.total() * 0.1;
|
||||
size += entity.items.total() * 0.1f / (itemCapacity / 8f);
|
||||
Draw.rect(entity.dominant().icon(Cicon.medium), Tmp.v1.x, Tmp.v1.y, size, size, 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user