summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-08-19 19:36:45 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-08-19 19:36:45 +0100
commit326941394565cf94f7c1d717dca5bfd647d98288 (patch)
treefd162bbb328458a74805440f49dac71c8ecca475 /init.lua
parent4953c57dc8df31fe68e8986bb84565431ebe4406 (diff)
Changed license
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index f67f8bb..1db8585 100644
--- a/init.lua
+++ b/init.lua
@@ -235,6 +235,7 @@ minetest.register_craft({
-- Wine barrel abm
minetest.register_abm({
+ label = "Barrel fermentation",
nodenames = {"wine:wine_barrel"},
interval = 5,
chance = 1,
@@ -242,7 +243,7 @@ minetest.register_abm({
action = function(pos, node)
- local meta = minetest.get_meta(pos)
+ local meta = minetest.get_meta(pos) ; if not meta then return end
local inv = meta:get_inventory()
-- is barrel empty?