Wuzzy, this issue is addressed in another thread:
viewtopic.php?f=6&t=16483If you are using Minetest 0.4.14, you just need to change the following code in src/environment.cpp and then recompile:
Old code:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
void ServerEnvironment::deactivateFarObjects(bool force_delete)
{
std::vector<u16> objects_to_remove;
for(std::map<u16, ServerActiveObject*>::iterator
i = m_active_objects.begin();
i != m_active_objects.end(); ++i) {
ServerActiveObject* obj = i->second;
assert(obj);
// Do not deactivate if static data creation not allowed
if(!force_delete && !obj->isStaticAllowed())
continue;
// If pending deactivation, let removeRemovedObjects() do it
if(!force_delete && obj->m_pending_deactivation)
continue;
u16 id = i->first;
v3f objectpos = obj->getBasePosition();
// The block in which the object resides in
v3s16 blockpos_o = getNodeBlockPos(floatToInt(objectpos, BS));
:
:
:
// If block is active, don't remove
if(!force_delete && m_active_blocks.contains(blockpos_o))
continue;
New code:Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
void ServerEnvironment::deactivateFarObjects(bool force_delete)
{
std::vector<u16> objects_to_remove;
for(std::map<u16, ServerActiveObject*>::iterator
i = m_active_objects.begin();
i != m_active_objects.end(); ++i)
{
ServerActiveObject* obj = i->second;
assert(obj);
// REK begin
// Don't delete non-static objects, including PlayerSAO's, or
// objects already pending deactivation (sorcerykid 01/24/2017)
if(!obj->isStaticAllowed() || obj->m_pending_deactivation)
continue;
// REK end
u16 id = i->first;
v3f objectpos = obj->getBasePosition();
// The block in which the object resides in
v3s16 blockpos_o = getNodeBlockPos(floatToInt(objectpos, BS));
:
:
:
// REK begin
// Ignore objects in active map blocks, otherwise they risk being deleted
// as soon as "max_objects_per_block" threshold is exceeded within any
// previously deactivated map block. (sorcerykid 01/24/2017)
if(m_active_blocks.contains(blockpos_o))
continue;
// REK end
In Minetest 0.4.15, the offending deactivateFarObjects( ) function is found in src/serverenvironment.cpp.