1
0
mirror of https://gitlab.com/rubenwardy/awards.git synced 2025-06-28 14:16:12 +02:00

1 Commits

Author SHA1 Message Date
a0b232aa2b prevent crash when a non-player object digs a node 2019-08-05 09:01:27 -06:00

View File

@ -152,7 +152,9 @@ function awards.register_trigger(tname, tdef)
end
end
assert(player and player.is_player and player:is_player() and key)
if not (player and player.is_player and player:is_player() and key) then
return
end
local name = player:get_player_name()
local data = awards.player(name)