mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Remove remenants of mob code
Since minetest has no mobs within the core anymore, I suppose these settings and code should go. Any mod that uses `minetest.setting_getbool` will work with no problem since the default return value is `false`.
This commit is contained in:
parent
737cce5f2b
commit
73bf791fe1
4 changed files with 0 additions and 10 deletions
|
@ -1225,11 +1225,6 @@ void ServerEnvironment::step(float dtime)
|
|||
i != m_active_objects.end(); ++i)
|
||||
{
|
||||
ServerActiveObject* obj = i->second;
|
||||
// Remove non-peaceful mobs on peaceful mode
|
||||
if(g_settings->getBool("only_peaceful_mobs")){
|
||||
if(!obj->isPeaceful())
|
||||
obj->m_removed = true;
|
||||
}
|
||||
// Don't step if is to be removed or stored statically
|
||||
if(obj->m_removed || obj->m_pending_deactivation)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue