Do not force deletion of players when mapblock is full (#5081)
This fixes #4067
This commit is contained in:
parent
0dada51a55
commit
2ea6015643
@ -2146,6 +2146,12 @@ void ServerEnvironment::deactivateFarObjects(bool force_delete)
|
|||||||
continue;
|
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(): "
|
verbosestream<<"ServerEnvironment::deactivateFarObjects(): "
|
||||||
<<"object id="<<id<<" is not known by clients"
|
<<"object id="<<id<<" is not known by clients"
|
||||||
<<"; deleting"<<std::endl;
|
<<"; deleting"<<std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user