mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Clean up/improve some scriptapi error handling code
This commit is contained in:
@@ -647,7 +647,7 @@ MapBlock *EmergeThread::finishGen(v3s16 pos, BlockMakeData *bmdata,
|
||||
m_server->getScriptIface()->environment_OnGenerated(
|
||||
minp, maxp, m_mapgen->blockseed);
|
||||
} catch (LuaError &e) {
|
||||
m_server->setAsyncFatalError("Lua: finishGen" + std::string(e.what()));
|
||||
m_server->setAsyncFatalError(e);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user