added inventory check

master
TenPlus1 2016-06-01 13:26:12 +01:00
parent 1653f977f3
commit 4953c57dc8
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ minetest.register_abm({
local inv = meta:get_inventory()
-- is barrel empty?
if inv:is_empty("src") then
if not inv or inv:is_empty("src") then
return
end