From 73bf791fe12d4214d29b6b872940ede634651ce8 Mon Sep 17 00:00:00 2001 From: Pavel Puchkin Date: Thu, 23 Oct 2014 22:17:47 +0300 Subject: 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`. --- src/environment.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/environment.cpp') diff --git a/src/environment.cpp b/src/environment.cpp index 8977ee673..64c998671 100644 --- a/src/environment.cpp +++ b/src/environment.cpp @@ -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; -- cgit v1.2.3