Skip to content
Permalink
Browse files

Do not force deletion of players when mapblock is full (#5081)

This fixes #4067
  • Loading branch information...
nerzhul committed Jan 21, 2017
1 parent 0dada51 commit 2ea60156437962d7d29d20606bf5d9189059f76b
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/serverenvironment.cpp
@@ -2146,6 +2146,12 @@ void ServerEnvironment::deactivateFarObjects(bool force_delete)
continue;
}

// If it's a forced delete, there are too many objects in mapblock
// Ignore players, they should not be removed on force delete
if (force_delete && obj->getType() == ACTIVEOBJECT_TYPE_PLAYER) {
continue;
}

verbosestream<<"ServerEnvironment::deactivateFarObjects(): "
<<"object id="<<id<<" is not known by clients"
<<"; deleting"<<std::endl;

0 comments on commit 2ea6015

Please sign in to comment.
You can’t perform that action at this time.