summaryrefslogtreecommitdiff
path: root/melon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'melon.lua')
-rw-r--r--melon.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/melon.lua b/melon.lua
index 52840c3..8860dde 100644
--- a/melon.lua
+++ b/melon.lua
@@ -136,6 +136,7 @@ minetest.register_node("crops:melon", {
--
minetest.register_abm({
nodenames = { "crops:melon_plant_1", "crops:melon_plant_2", "crops:melon_plant_3","crops:melon_plant_4" },
+ neighbors = { "group:soil" },
interval = interval,
chance = chance,
action = function(pos, node, active_object_count, active_object_count_wider)
@@ -155,6 +156,7 @@ minetest.register_abm({
--
minetest.register_abm({
nodenames = { "crops:melon_plant_5" },
+ neighbors = { "group:soil" },
interval = interval,
chance = chance,
action = function(pos, node, active_object_count, active_object_count_wider)