mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-02-22 07:49:20 +00:00
fix to prevent pasting locked buildings
This commit is contained in:
parent
a1c6a99df0
commit
9e7585466e
@ -84,6 +84,13 @@ export class GameLogic {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const toolbar = this.root.hud.parts.buildingsToolbar;
|
||||||
|
const id = entity.components.StaticMapEntity.getMetaBuilding().getId();
|
||||||
|
|
||||||
|
if (toolbar.buildingHandles[id].puzzleLocked) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user