Fix crash in can_dig function

master
Wuzzy 2016-09-21 14:10:54 +02:00
parent dad4544548
commit 1bbc854667
1 changed files with 2 additions and 0 deletions

View File

@ -850,6 +850,8 @@ easyvend.can_dig = function(pos, player)
if chest_pos then
chest = minetest.get_node(chest_pos)
meta_chest = minetest.get_meta(chest_pos)
else
return true --if no chest, enyone can dig this shop
end
if registered_chests[chest.name] then
if player and player:is_player() then