summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")