This commit is contained in:
Patrick 'Quezler' Mounier
2020-01-07 10:33:04 +01:00
parent add19ed7f1
commit 781fbb6255

View File

@@ -82,12 +82,9 @@ public class CraterConveyor extends BaseConveyor{
if(entity.dominant() == null) return;
// draw resource
float size = itemSize / 1.5f;
float size = itemSize / 2f;
size = size / itemCapacity * entity.items.total();
Draw.rect(entity.dominant().icon(Cicon.medium), Tmp.v1.x, Tmp.v1.y, size, size, 0);
// draw amount
Fonts.outline.draw(tile.entity.items.total() + "", Tmp.v1.x, Tmp.v1.y - 1,
Pal.accent, 0.25f * 0.5f / Scl.scl(1f), false, Align.center);
}