summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authortenplus1 <kinsellaja@yahoo.com>2015-04-07 09:09:46 +0100
committertenplus1 <kinsellaja@yahoo.com>2015-04-07 09:09:46 +0100
commit851234eb2c709e450e035a012b62f54a77608f0d (patch)
tree041d60e58b79d3289a62bf03ee0d47cadd280e00 /init.lua
parent4b413ccb36f161a7b986262903ab14e4b984f860 (diff)
fixed mutiple seed placement bug
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 9e87403..f2c4dc7 100644
--- a/init.lua
+++ b/init.lua
@@ -55,7 +55,8 @@ function farming.place_seed(itemstack, placer, pointed_thing, plantname)
-- can I replace above node, and am I pointing at soil
if not minetest.registered_nodes[above.name].buildable_to
- or minetest.get_item_group(under.name, "soil") < 2 then
+ or minetest.get_item_group(under.name, "soil") < 2
+ or minetest.get_item_group(above.name, "plant") ~= 0 then -- ADDED this line for multiple seed placement bug
return
end