summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index f9400ed..ea5ae04 100644
--- a/init.lua
+++ b/init.lua
@@ -101,6 +101,10 @@ local find_plant = function(node)
return nil
end
+crops.register = function(plantdef)
+ table.insert(crops.plants, plantdef)
+end
+
crops.plant = function(pos, node)
minetest.set_node(pos, node)
local meta = minetest.get_meta(pos)