From f3a366b83021c5b75668258cb7188b0b41ad7f28 Mon Sep 17 00:00:00 2001 From: fancymelonhub <30706150+fancythedeveloper@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:30:58 -0400 Subject: [PATCH 1/2] Update Level.js --- classes/Level.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/classes/Level.js b/classes/Level.js index ad3b1065..d62fb664 100644 --- a/classes/Level.js +++ b/classes/Level.js @@ -27,6 +27,7 @@ class Level { this.gameVersion = levelInfo[13] > 17 ? (levelInfo[13] / 10).toFixed(1) : levelInfo[13] == 11 ? "1.8" : levelInfo[13] == 10 ? "1.7" : "Pre-1.7" if (levelInfo[28]) this.uploaded = levelInfo[28] + (server.timestampSuffix || "") if (levelInfo[29]) this.updated = levelInfo[29] + (server.timestampSuffix || "") + if (levelInfo[13] < 21) this.editorTime = 0, this.totalEditorTime = 0 if (levelInfo[46]) this.editorTime = +levelInfo[46] || 0 if (levelInfo[47]) this.totalEditorTime = +levelInfo[47] || 0 if (levelInfo[27]) this.password = levelInfo[27]; @@ -88,4 +89,4 @@ class Level { } } -module.exports = Level; \ No newline at end of file +module.exports = Level; From 4dcff0f7bdf069d9db24db99900bdfc609c27ac1 Mon Sep 17 00:00:00 2001 From: fancymelonhub <30706150+fancythedeveloper@users.noreply.github.com> Date: Wed, 6 Jul 2022 16:44:23 -0400 Subject: [PATCH 2/2] why did it do that --- classes/Level.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Level.js b/classes/Level.js index d62fb664..bf56cc39 100644 --- a/classes/Level.js +++ b/classes/Level.js @@ -27,7 +27,7 @@ class Level { this.gameVersion = levelInfo[13] > 17 ? (levelInfo[13] / 10).toFixed(1) : levelInfo[13] == 11 ? "1.8" : levelInfo[13] == 10 ? "1.7" : "Pre-1.7" if (levelInfo[28]) this.uploaded = levelInfo[28] + (server.timestampSuffix || "") if (levelInfo[29]) this.updated = levelInfo[29] + (server.timestampSuffix || "") - if (levelInfo[13] < 21) this.editorTime = 0, this.totalEditorTime = 0 + if (levelInfo[13] < 21) this.editorTime = 0, this.totalEditorTime = 0 if (levelInfo[46]) this.editorTime = +levelInfo[46] || 0 if (levelInfo[47]) this.totalEditorTime = +levelInfo[47] || 0 if (levelInfo[27]) this.password = levelInfo[27];