Update worldEdit.js
This commit is contained in:
parent
7e42797020
commit
c24a7ab05e
|
|
@ -1,8 +1,6 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
// WorldEdit.js (compiled)
|
// WorldEdit.js (compiled)
|
||||||
// Version: 1.0.0
|
// Version: 1.0.1
|
||||||
// Other mods
|
|
||||||
w_ensureModEnabled("mods/betterSettings.js");
|
|
||||||
// Constants
|
// Constants
|
||||||
const w_accentColor = "#7cff62";
|
const w_accentColor = "#7cff62";
|
||||||
const w_style = {
|
const w_style = {
|
||||||
|
|
@ -83,14 +81,6 @@ class Rect {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
function w_ensureModEnabled(modName) {
|
|
||||||
if (enabledMods.includes(modName))
|
|
||||||
return;
|
|
||||||
enabledMods.unshift(modName);
|
|
||||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
|
||||||
window.location.reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
function isPointInWorld(point) {
|
function isPointInWorld(point) {
|
||||||
return point.x >= 0 && point.x <= width && point.y >= 0 && point.y <= height;
|
return point.x >= 0 && point.x <= width && point.y >= 0 && point.y <= height;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue