From e294d96efeb446d8871930d07d891eb3f1001108 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sun, 5 Jun 2022 17:10:41 +0100 Subject: [PATCH] //dome+: ensure domes include pos1 --- worldeditadditions/lib/dome.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/worldeditadditions/lib/dome.lua b/worldeditadditions/lib/dome.lua index 36018ee..fa94a4d 100644 --- a/worldeditadditions/lib/dome.lua +++ b/worldeditadditions/lib/dome.lua @@ -48,22 +48,22 @@ function worldeditadditions.dome(pos, radius, replace_node, pointing_dir, hollow if is_in_range then -- It's inside the radius, but we're still not sure given this is a dome and not a sphere local should_include = false - if x < centrepoint.x and pointing_dir.x < 0 then + if x <= centrepoint.x and pointing_dir.x < 0 then should_include = true end - if x > centrepoint.x and pointing_dir.x > 0 then + if x >= centrepoint.x and pointing_dir.x > 0 then should_include = true end - if y < centrepoint.y and pointing_dir.y < 0 then + if y <= centrepoint.y and pointing_dir.y < 0 then should_include = true end - if y > centrepoint.y and pointing_dir.y > 0 then + if y >= centrepoint.y and pointing_dir.y > 0 then should_include = true end - if z < centrepoint.z and pointing_dir.z < 0 then + if z <= centrepoint.z and pointing_dir.z < 0 then should_include = true end - if z > centrepoint.z and pointing_dir.z > 0 then + if z >= centrepoint.z and pointing_dir.z > 0 then should_include = true end