mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Show 2 digits in item processor
This commit is contained in:
parent
3e0f42e47c
commit
b248c4d1f5
@ -88,10 +88,7 @@ export class ItemProcessorOverlaysSystem extends GameSystem {
|
||||
parameters.context.textAlign = "center";
|
||||
parameters.context.font = "bold 10px GameFont";
|
||||
parameters.context.fillText(
|
||||
"" +
|
||||
(G_IS_DEV
|
||||
? round4Digits(readerComp.lastThroughput)
|
||||
: Math.round(readerComp.lastThroughput * 10) / 10),
|
||||
"" + Math.round(readerComp.lastThroughput * 10) / 10,
|
||||
(staticComp.origin.x + 0.5) * globalConfig.tileSize,
|
||||
(staticComp.origin.y + 0.62) * globalConfig.tileSize
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user