mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Implements some linter recommendations for CI check.
This commit is contained in:
parent
efdaf74659
commit
9a00931c3f
@ -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
|
||||
|
@ -530,7 +530,6 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
}
|
||||
|
||||
if (data.version < 13) {
|
||||
<<<<<<< HEAD
|
||||
data.settings.compactBuildingInfo = false;
|
||||
data.version = 13;
|
||||
}
|
||||
@ -554,11 +553,10 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
if (data.version < 17) {
|
||||
data.settings.enableColorBlindHelper = false;
|
||||
data.version = 17;
|
||||
=======
|
||||
}
|
||||
if(data.version < 18) {
|
||||
data.settings.rotationByBuilding = true;
|
||||
data.version = 13;
|
||||
|
||||
>>>>>>> 655c356... Adds tracking for rotation per building type.
|
||||
data.version = 18;
|
||||
}
|
||||
|
||||
return ExplainedResult.good();
|
||||
|
Loading…
Reference in New Issue
Block a user