mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Fix crash when placing buildings
This commit is contained in:
parent
69a2d31792
commit
172a0398e2
@ -127,7 +127,7 @@ export class HUDBuildingPlacer extends BaseHUDPart {
|
|||||||
var sy = y0 < y1 ? 1 : -1;
|
var sy = y0 < y1 ? 1 : -1;
|
||||||
var err = dx - dy;
|
var err = dx - dy;
|
||||||
|
|
||||||
while (true) {
|
while (this.currentMetaBuilding.get()) {
|
||||||
this.tryPlaceCurrentBuildingAt(new Vector(x0, y0));
|
this.tryPlaceCurrentBuildingAt(new Vector(x0, y0));
|
||||||
if (x0 === x1 && y0 === y1) break;
|
if (x0 === x1 && y0 === y1) break;
|
||||||
var e2 = 2 * err;
|
var e2 = 2 * err;
|
||||||
|
Loading…
Reference in New Issue
Block a user