detect missing api function

fixes #2
master
BuckarooBanzay 2022-01-17 09:51:43 +01:00
parent 9528f68cdd
commit 7349129a9f
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ minetest.register_on_generated(function(minp, maxp)
return
end
if has_planetoidgen_mod and planetoidgen.is_occupied(minp) then
if has_planetoidgen_mod and type(planetoidgen.is_occupied) == "function" and planetoidgen.is_occupied(minp) then
-- here be planetoids, skip mapgen
return
end