mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Revert "Clean up some getServer() unsafety"
Turned out to not be a good idea.
This reverts commit 58eccc7a2a
.
This commit is contained in:
parent
73dbd2f0ab
commit
df4c9e2903
3 changed files with 8 additions and 15 deletions
|
@ -541,8 +541,8 @@ Server* ScriptApiBase::getServer()
|
|||
{
|
||||
// Since the gamedef is the server it's still possible to retrieve it in
|
||||
// e.g. the async environment, but this isn't meant to happen.
|
||||
if (getType() != ScriptingType::Server)
|
||||
return nullptr;
|
||||
// TODO: still needs work
|
||||
//assert(getType() == ScriptingType::Server);
|
||||
return dynamic_cast<Server *>(m_gamedef);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue