From 7f83d0ffcdaeb12e259697a4a50d12ea649f9184 Mon Sep 17 00:00:00 2001 From: Brett O'Donnell Date: Wed, 26 Sep 2012 17:35:20 +0930 Subject: [PATCH] fix checking for space bug --- deploy_sphere/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy_sphere/init.lua b/deploy_sphere/init.lua index 2bfad3f..7e56145 100644 --- a/deploy_sphere/init.lua +++ b/deploy_sphere/init.lua @@ -31,7 +31,7 @@ deploy_sphere.deploy = function(pos,placer,nodename,radius) for y=-radius,radius do for z=-radius,radius do if x*x+y*y+z*z <= radius * radius + radius then - if x~=0 or y~=0 or z~=0 then + if x~=0 or y~=radius*-1 or z~=0 then local checkpos = {x=pos.x+x,y=pos.y+y+radius,z=pos.z+z} local checknode = minetest.env:get_node(checkpos).name if checknode~="air" then