1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-12 19:09:21 +00:00

fix to prevent pasting locked buildings

This commit is contained in:
Sense101 2021-07-27 19:14:59 +01:00
parent a1c6a99df0
commit 9e7585466e

View File

@ -84,6 +84,13 @@ export class GameLogic {
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;
}