Update maze.js

This commit is contained in:
GGodPL 2025-03-01 12:06:37 +01:00
parent 3dae0a9951
commit cb6f2b4f1c
1 changed files with 0 additions and 10 deletions

View File

@ -68,14 +68,4 @@ elements.maze = {
generateMaze(mouseSize - 1, mouseSize - 1, Math.floor(mousePos.x - mouseSize / 2) + 1, Math.floor(mousePos.y - mouseSize / 2) + 1) generateMaze(mouseSize - 1, mouseSize - 1, Math.floor(mousePos.x - mouseSize / 2) + 1, Math.floor(mousePos.y - mouseSize / 2) + 1)
} }
} }
runAfterLoadList.push(() => {
if (!enabledMods.includes("mods/editTools.js")) {
document.addEventListener("mousedown", (ev) => {
if (elements[currentElement].onMouseDown) {
elements[currentElement].onMouseDown();
}
})
}
})
} }