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

Implements some linter recommendations for CI check.

This commit is contained in:
Magnus Grimstvedt Saltnes
2020-06-18 22:48:36 +02:00
parent efdaf74659
commit 9a00931c3f
2 changed files with 5 additions and 10 deletions

View File

@@ -1,4 +1,3 @@
import { Math_abs, Math_degrees, Math_round } from "../../../core/builtins";
import { globalConfig } from "../../../core/config";
import { gMetaBuildingRegistry } from "../../../core/global_registries";
@@ -61,8 +60,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
}
const id = this.currentMetaBuilding.get().getId();
return this.preferredRotations[id] || this.currentBaseRotationGeneral;
}
};
this.setBaseRotation = function (rotation) {
const rotationByBuilding = this.root.app.settings.getAllSettings().rotationByBuilding;
@@ -72,8 +70,7 @@ export class HUDBuildingPlacerLogic extends BaseHUDPart {
const id = this.currentMetaBuilding.get().getId();
this.preferredRotations[id] = rotation;
}
}
};
/**
* Whether we are currently dragging