mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Remove redundant redraw
looks like i was high or something, i don't believe my eyes (and arms)
This commit is contained in:
parent
2eba8f79e7
commit
73b7f27328
@ -123,13 +123,6 @@ export class DisplaySystem extends GameSystemWithFilter {
|
||||
|
||||
const origin = entity.components.StaticMapEntity.origin;
|
||||
if (value instanceof ColorItem) {
|
||||
this.displaySprites[value.color].drawCachedCentered(
|
||||
parameters,
|
||||
(origin.x + 0.5) * globalConfig.tileSize,
|
||||
(origin.y + 0.5) * globalConfig.tileSize,
|
||||
globalConfig.tileSize
|
||||
);
|
||||
|
||||
parameters.context.fillStyle = enumColorsToHexCode[value.color];
|
||||
parameters.context.fillRect(
|
||||
origin.x * globalConfig.tileSize,
|
||||
|
Loading…
Reference in New Issue
Block a user