mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fixed rotated levers not being rendered correctly
This commit is contained in:
parent
e04fcceecc
commit
5076c03dab
@ -37,14 +37,7 @@ export class LeverSystem extends GameSystemWithFilter {
|
||||
const leverComp = entity.components.Lever;
|
||||
if (leverComp) {
|
||||
const sprite = leverComp.toggled ? this.spriteOn : this.spriteOff;
|
||||
const origin = entity.components.StaticMapEntity.origin;
|
||||
sprite.drawCached(
|
||||
parameters,
|
||||
origin.x * globalConfig.tileSize,
|
||||
origin.y * globalConfig.tileSize,
|
||||
globalConfig.tileSize,
|
||||
globalConfig.tileSize
|
||||
);
|
||||
entity.components.StaticMapEntity.drawSpriteOnBoundsClipped(parameters, sprite);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user