Skip to content

Commit

Permalink
Fix a bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzx-dzx committed Aug 28, 2021
1 parent fe8aea9 commit e1ffc46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 2 additions & 1 deletion src/plugin/lxl/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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) => {
Expand Down

0 comments on commit e1ffc46

Please sign in to comment.