mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Fix for freeEntityAreaBeforeBuild function.
Small typo that brings big bug with it. If you try to replace replaceable entity with wired pins, using unreplaceable entity with wired pins, it crashes because it is looking for "replacing entity" instead of "replaced entity".
This commit is contained in:
parent
7e436f2f2e
commit
f770048938
@ -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