Mapgen: write SuperUltraSigmaMapgen part 7.1

This commit is contained in:
Van
2025-11-23 21:09:20 +03:00
parent 1e430aaeb0
commit 3c482d6f04
4 changed files with 37 additions and 9 deletions

View File

@@ -678,12 +678,17 @@ end
---Run world generation through this mapgen object
---
---Note: only one instance of a `MapGen` class can be running.
---
---**FOR MAPGEN ENVIRONMENT ONLY**
function MapGen:run()
if MapGen.isRunning then
error('Only one instance of a `MapGen` class can be running.')
end
core.register_on_generated(function(...)
-- TODO: удалить отключение проверки после исправления issue:
-- https://github.com/Voxrame/luanti-ide-helper/issues/6
---@diagnostic disable-next-line: param-type-not-match
self:onMapGenerated(...)
end)