summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-09-14 16:55:29 -0500
committercheapie <no-email-for-you@example.com>2024-09-14 16:55:29 -0500
commit238cb6d7d9b1f04177b67993a31d10971e11c4bd (patch)
treed72ce288787cd23b509dbbf233e230a726306c05
parent3d8d01d8a4923e7e4e24cd8744318b17b9c0cc0e (diff)
downloadcreativesettings-238cb6d7d9b1f04177b67993a31d10971e11c4bd.tar
creativesettings-238cb6d7d9b1f04177b67993a31d10971e11c4bd.tar.gz
creativesettings-238cb6d7d9b1f04177b67993a31d10971e11c4bd.tar.bz2
creativesettings-238cb6d7d9b1f04177b67993a31d10971e11c4bd.tar.xz
creativesettings-238cb6d7d9b1f04177b67993a31d10971e11c4bd.zip
Add luacheck configuration and some (very) minor cleanupHEADmain
-rw-r--r--.luacheckrc7
-rw-r--r--init.lua2
2 files changed, 8 insertions, 1 deletions
diff --git a/.luacheckrc b/.luacheckrc
new file mode 100644
index 0000000..b501c8a
--- /dev/null
+++ b/.luacheckrc
@@ -0,0 +1,7 @@
+max_line_length = 160
+
+read_globals = {
+ "playersettings",
+ "minetest",
+ "vector",
+}
diff --git a/init.lua b/init.lua
index bd2f006..c428a32 100644
--- a/init.lua
+++ b/init.lua
@@ -1,4 +1,4 @@
-local function set(name,old,new)
+local function set(name)
local player = minetest.get_player_by_name(name)
local speed = playersettings.get(name,"creativesettings:speed")
local jump = playersettings.get(name,"creativesettings:jump")