diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-01 13:26:12 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-06-01 13:26:12 +0100 |
commit | 4953c57dc8df31fe68e8986bb84565431ebe4406 (patch) | |
tree | 51ce8ec7e8e086a3da41bacb2bf1d3bf861dbc72 | |
parent | 1653f977f3a4388463e080d79347b22a40ec6b13 (diff) |
added inventory check
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |