From 7e427970201d9767787aec20288ba8b8e160d434 Mon Sep 17 00:00:00 2001 From: redbirdly <155550833+redbirdly@users.noreply.github.com> Date: Fri, 1 Aug 2025 09:56:41 +0800 Subject: [PATCH] Update worldEdit.ts --- mods/worldEdit.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/mods/worldEdit.ts b/mods/worldEdit.ts index e0c6a1d5..e72cd86d 100644 --- a/mods/worldEdit.ts +++ b/mods/worldEdit.ts @@ -1,9 +1,6 @@ // WorldEdit.ts // Version: 1.0.0 -// Other mods -w_ensureModEnabled("mods/betterSettings.js") - // Interfaces interface WorldEditState { firstSelectionPos: Vec2D, @@ -124,15 +121,6 @@ class Rect { } // Functions -function w_ensureModEnabled(modName: string) { - if (enabledMods.includes(modName)) - return - - enabledMods.unshift(modName) - localStorage.setItem("enabledMods", JSON.stringify(enabledMods)) - window.location.reload() -} - function isPointInWorld(point: Vec2D): boolean { return point.x >= 0 && point.x <= width && point.y >= 0 && point.y <= height }