From 493566493b1cc2ee020c45dbc3f057d6544ec2d3 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Tue, 26 Apr 2016 14:36:44 +0100 Subject: [PATCH] Fixed cocoa bean placement bug --- cocoa.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cocoa.lua b/cocoa.lua index 4e62cee..a11a611 100644 --- a/cocoa.lua +++ b/cocoa.lua @@ -17,7 +17,8 @@ function place_cocoa(itemstack, placer, pointed_thing, plantname) end -- check if pointing at jungletree - if under.name ~= "default:jungletree" then + if under.name ~= "default:jungletree" + or minetest.get_node(pt.above).name ~= "air" then return end