Fix off-by-one error

master^2
codefairy 2019-09-02 15:24:58 -04:00
parent 9b52d5a182
commit 616e3b4e2d
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ end
function maggems_landmark.find_amenities(area)
local _, amenities = minetest.find_nodes_in_area(area.min, area.max, maggems_landmark.amenity_names)
for amen, count in pairs(amenities) do
if (count > 0) then
if (count == 0) then
amenities[amen] = nil
end
end