From 18e2775475458fa7791aa818beb35b6d8c9df0fb Mon Sep 17 00:00:00 2001 From: the lemons Date: Sat, 12 Feb 2022 20:36:15 -0600 Subject: fix usage of global --- mods/vzxv/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/vzxv/commands.lua b/mods/vzxv/commands.lua index e39827a..a644c8f 100644 --- a/mods/vzxv/commands.lua +++ b/mods/vzxv/commands.lua @@ -15,7 +15,7 @@ minetest.register_chatcommand("node", { func = function(name, node) if not node then return end local p = minetest.get_player_by_name(name) - pos = p:get_pos() + local pos = p:get_pos() local ok, err = pcall(minetest.add_node, pos, {name = node}) if not ok then return false, err end return true, "placed node at your location" -- cgit v1.2.3