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

Fix mouse handling

This commit is contained in:
tobspr
2020-06-17 14:56:21 +02:00
parent 4c20094878
commit 61bcc31861
5 changed files with 68 additions and 34 deletions

View File

@@ -343,12 +343,14 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
*/
executeDirectionLockedPlacement() {
const path = this.computeDirectionLockPath();
for (let i = 0; i < path.length; ++i) {
const { rotation, tile } = path[i];
this.root.logic.performBulkOperation(() => {
for (let i = 0; i < path.length; ++i) {
const { rotation, tile } = path[i];
this.currentBaseRotation = rotation;
this.tryPlaceCurrentBuildingAt(tile);
}
this.currentBaseRotation = rotation;
this.tryPlaceCurrentBuildingAt(tile);
}
});
}
/**