Skip to content

Commit

Permalink
default to no-vacuum if one corner is not in space
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jul 9, 2020
1 parent 9fb53a2 commit e9e4391
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mapgen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ end

local check_corners_in_space = function(minp, maxp)
for _, pos in ipairs(get_corners(minp, maxp)) do
if vacuum.is_pos_in_space(pos) then
return true
if not vacuum.is_pos_in_space(pos) then
return false
end
end

return false
return true
end

minetest.register_on_generated(function(minp, maxp, seed)
Expand Down

0 comments on commit e9e4391

Please sign in to comment.