mirror of
https://github.com/LeMagnesium/minetest-mod-metatools.git
synced 2024-11-13 05:40:24 +01:00
Crashfix on /meta set <variable name> without new value
This commit is contained in:
parent
0585ad63d4
commit
2ed6e41fcf
2
init.lua
2
init.lua
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user