diff --git a/chatcommands.lua b/chatcommands.lua index 494a0f3..69243b1 100644 --- a/chatcommands.lua +++ b/chatcommands.lua @@ -126,7 +126,7 @@ minetest.register_chatcommand("creative_region_clearinv", { privs = {server = true}, func = function(name, param) local player = minetest.get_player_by_name(name) - local playerName, inventoryName = param:match("^(%S+)%s(.+)$") + local playerName, inventoryListName = param:match("^(%S+)%s(.+)$") if not playerName or not inventoryListName then return false, "Syntax error" end