mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Add a setting to disable picking the miner when on a resource patch (#649)
* Add a setting to disable picking the miner when on a resource patch * Fix that one space :D Linter go brrrr Co-authored-by: dengr1065 <dengr1065@gmail.com>
This commit is contained in:
@@ -261,6 +261,7 @@ export const allApplicationSettings = [
|
||||
new BoolSetting("disableCutDeleteWarnings", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("rotationByBuilding", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("displayChunkBorders", enumCategories.advanced, (app, value) => {}),
|
||||
new BoolSetting("pickMinerOnPatch", enumCategories.advanced, (app, value) => {}),
|
||||
|
||||
new EnumSetting("refreshRate", {
|
||||
options: refreshRateOptions,
|
||||
@@ -305,6 +306,7 @@ class SettingsStorage {
|
||||
this.rotationByBuilding = true;
|
||||
this.clearCursorOnDeleteWhilePlacing = true;
|
||||
this.displayChunkBorders = false;
|
||||
this.pickMinerOnPatch = true;
|
||||
|
||||
this.enableColorBlindHelper = false;
|
||||
|
||||
@@ -626,7 +628,11 @@ export class ApplicationSettings extends ReadWriteProxy {
|
||||
|
||||
if (data.version < 24) {
|
||||
data.settings.refreshRate = "60";
|
||||
data.version = 24;
|
||||
}
|
||||
|
||||
if (data.version < 25) {
|
||||
data.settings.pickMinerOnPatch = true;
|
||||
data.version = 25;
|
||||
}
|
||||
|
||||
if (data.version < 25) {
|
||||
|
||||
Reference in New Issue
Block a user