mirror of
https://github.com/tobspr-games/shapez.io.git
synced 2026-01-24 13:30:45 -08:00
Fix crash when replacing wire-layer buildings
This commit is contained in:
parent
7e436f2f2e
commit
679e7f168c
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ export class WiredPinsSystem extends GameSystemWithFilter {
|
|||
const worldPos = entity.components.StaticMapEntity.localTileToWorld(slot.pos);
|
||||
const collidingEntity = this.root.map.getLayerContentXY(worldPos.x, worldPos.y, "wires");
|
||||
if (collidingEntity) {
|
||||
const staticComp = entity.components.StaticMapEntity;
|
||||
const staticComp = collidingEntity.components.StaticMapEntity;
|
||||
assertAlways(
|
||||
staticComp
|
||||
.getMetaBuilding()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue