diff --git a/src/index.js b/src/index.js index b769a03..23d2a46 100644 --- a/src/index.js +++ b/src/index.js @@ -190,6 +190,7 @@ function handlePlayerRequest({ requestType, playerID, additionalData }) { // form.addInput(e.text, "", user.getCurrentState()[e.key]) // form.addInput(e.text,`Input ${typeof user.getCurrentState()[e.key]} here`, user.getCurrentState()[e.key].toString()) if (ui[i].inputType && ui[i].inputType == "string") user.getCurrentState()[ui[i].key] = e + else if (ui[i].inputType && ui[i].inputType == "float") user.getCurrentState()[ui[i].key] = parseFloat(e) else user.getCurrentState()[ui[i].key] = parseInt(e) break; } diff --git a/src/plugin/lxl/index.js b/src/plugin/lxl/index.js index 2e911b9..78a17cf 100644 --- a/src/plugin/lxl/index.js +++ b/src/plugin/lxl/index.js @@ -26,6 +26,7 @@ system.registerCanonicalGenerator({ viewtype: "edittext", text: "Time for each eighth note in seconds(Controls the speed. Advised to be a multiple of 0.2!):", key: "SECOND_PER_EIGHTH_NOTE", + inputType: "float" }, { viewtype: "edittext", @@ -42,7 +43,7 @@ system.registerCanonicalGenerator({ const { logger, file } = e.runtime const positionArray = e.state.positions - const { facingAxis, song_number } = e.state + const { facingAxis } = e.state let blockArray = [] const songs = ((songName) => {