mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 15:04:52 +09:00
Fix to be more consistant with the rest of clustorio
Also made sure "null" is entered as empty as to be consistant with the rest of clustorio.
This commit is contained in:
1 parent
76882ad1c4
commit
eb3b7df390
1 file changed
+3
-2
+3
-2
@@ -175,7 +175,9 @@ masterConfigCommands.add(new libCommand.Command({
|
||||
} catch (err) {
|
||||
part = null;
|
||||
}
|
||||
print(part, typeof part);
|
||||
if (part === "null") {
|
||||
part = null;
|
||||
}
|
||||
let finalIndex = filtered[index][0].trim();
|
||||
final[finalIndex] = part;
|
||||
// trim whitespace and put in final array for processing
|
||||
@@ -183,7 +185,6 @@ masterConfigCommands.add(new libCommand.Command({
|
||||
}
|
||||
for (let element in final) {
|
||||
if (element in final) {
|
||||
print(element, final[element], typeof final[element]);
|
||||
await libLink.messages.setMasterConfigField.send(control, {
|
||||
field: element,
|
||||
value: final[element],
|
||||
|
||||
Reference in new issue
Block a user