From 238cb6d7d9b1f04177b67993a31d10971e11c4bd Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 14 Sep 2024 16:55:29 -0500 Subject: Add luacheck configuration and some (very) minor cleanup --- .luacheckrc | 7 +++++++ init.lua | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .luacheckrc 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") -- cgit v1.2.3