mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix crash when replacing wire-layer buildings
This commit is contained in:
parent
7e436f2f2e
commit
679e7f168c
@ -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…
Reference in New Issue
Block a user