Fix all luacheck warnings #1

Merged
gergely merged 4 commits from luacheck-fixes into main 2025-12-16 20:18:26 +01:00
Showing only changes of commit 880a60b7e0 - Show all commits

View File

@@ -17,7 +17,8 @@ end
-- Function to swap nodes
stripped_tree.swap_node = function(pos, user, in_creative_mode)
local old_node = core.get_node(pos)
local old_node = core.get_node(pos).name
local mod_name, node_name = unpack(old_node:split(":"))
local stripped = mod_name .. ":" .. "stripped_" .. node_name
core.swap_node(pos, {name = stripped, param2 = old_node.param2})