mirror of
git://repo.or.cz/minetest_treasurer.git
synced 2025-01-09 16:20:19 +01:00
Fix typo: tosting instead of tostring
This commit is contained in:
parent
0ddcd5c545
commit
71a136d920
2
init.lua
2
init.lua
@ -151,7 +151,7 @@ function treasurer.register_treasure(name, rarity, preciousness, count, wear, tr
|
|||||||
|
|
||||||
-- check type of treasurer_group
|
-- check type of treasurer_group
|
||||||
if type(treasurer_groups) ~= "table" and type(treasurer_groups) ~= "nil" and type(treasurer_groups) ~= "string" then
|
if type(treasurer_groups) ~= "table" and type(treasurer_groups) ~= "nil" and type(treasurer_groups) ~= "string" then
|
||||||
minetest.log("error","[treasurer] I rejected the treasure \""..tostring(name).."\" because the treasure_group parameter is of type "..tosting(type(treasurer_groups)).." (expected: nil, string or table).")
|
minetest.log("error","[treasurer] I rejected the treasure \""..tostring(name).."\" because the treasure_group parameter is of type "..tostring(type(treasurer_groups)).." (expected: nil, string or table).")
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user