Extra error checking: global variables

This commit is contained in:
Duane 2016-07-15 04:18:54 -05:00
parent bf26b8bee1
commit 1648bc459f
17 changed files with 362 additions and 323 deletions

View file

@ -3,7 +3,7 @@ minetest.register_chatcommand("armor", {
description = "Display your armor values",
privs = {},
func = function(player_name, param)
if not (player_name and type(player_name) == 'string' and player_name ~= '') then
if not (player_name and type(player_name) == 'string' and player_name ~= '' and fun_caves.db.status) then
return
end