Crashfix on /meta set <variable name> without new value

This commit is contained in:
paly2 2016-08-26 18:41:04 +02:00 committed by LeMagnesium
parent 0585ad63d4
commit 2ed6e41fcf

View File

@ -232,7 +232,7 @@ minetest.register_chatcommand("meta", {
if not paramlist[3] then
minetest.chat_send_player(name,"- meta::set - You must provide a value for the variable you want to set")
minetest.log("action","[metatools] Player "..name.." failed setting variable ".. paramlist[3] .." : no value given")
minetest.log("action","[metatools] Player "..name.." failed setting variable ".. paramlist[2] .." : no value given")
return false
end