mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-12-16 11:41:50 +00:00
Fixed Linting Errors
This commit is contained in:
parent
159f9d44d7
commit
a4d7284731
7
.vscode/settings.json
vendored
7
.vscode/settings.json
vendored
@ -1,5 +1,8 @@
|
|||||||
{
|
{
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"files.trimTrailingWhitespace": true,
|
"files.trimTrailingWhitespace": true,
|
||||||
"editor.formatOnSave": true
|
"editor.formatOnSave": true,
|
||||||
}
|
"[javascript]": {
|
||||||
|
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -70,8 +70,7 @@ export class Blueprint {
|
|||||||
|
|
||||||
// First, create a copy
|
// First, create a copy
|
||||||
for (let i = 0; i < entities.length; ++i) {
|
for (let i = 0; i < entities.length; ++i) {
|
||||||
|
const entity = entities[i]; //root.entityMgr.findByUid(uids[i]);
|
||||||
const entity = entities[i];//root.entityMgr.findByUid(uids[i]);
|
|
||||||
// assert(entity, "Entity for blueprint not found:" + uids[i]);
|
// assert(entity, "Entity for blueprint not found:" + uids[i]);
|
||||||
|
|
||||||
const clone = entity.clone();
|
const clone = entity.clone();
|
||||||
|
|||||||
@ -183,9 +183,7 @@ export class HUDBlueprintPlacer extends BaseHUDPart {
|
|||||||
this.root.soundProxy.playUiError();
|
this.root.soundProxy.playUiError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
this.root.hud.signals.pasteBlueprintRequested.dispatch();
|
||||||
this.root.hud.signals.pasteBlueprintRequested.dispatch();
|
|
||||||
|
|
||||||
this.currentBlueprint.set(this.lastBlueprintUsed);
|
this.currentBlueprint.set(this.lastBlueprintUsed);
|
||||||
} else {
|
} else {
|
||||||
this.root.soundProxy.playUiError();
|
this.root.soundProxy.playUiError();
|
||||||
|
|||||||
@ -24,7 +24,7 @@ import { BaseHUDPart } from "../base_hud_part";
|
|||||||
const logger = createLogger("hud/mass_selector");
|
const logger = createLogger("hud/mass_selector");
|
||||||
|
|
||||||
export class HUDMassSelector extends BaseHUDPart {
|
export class HUDMassSelector extends BaseHUDPart {
|
||||||
createElements(parent) { }
|
createElements(parent) {}
|
||||||
|
|
||||||
initialize() {
|
initialize() {
|
||||||
this.multiLayerSelect = false;
|
this.multiLayerSelect = false;
|
||||||
@ -62,8 +62,7 @@ export class HUDMassSelector extends BaseHUDPart {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const index = this.selectedEntities.indexOf(entity);
|
const index = this.selectedEntities.indexOf(entity);
|
||||||
if (index != -1)
|
if (index != -1) this.selectedEntities.splice(index, 1);
|
||||||
this.selectedEntities.splice(index, 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user