Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyndev committed Jan 5, 2025
1 parent b539a63 commit 02317d3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/serverenvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2161,9 +2161,10 @@ void ServerEnvironment::deactivateFarObjects(const bool _force_delete)
v3s16 blockpos_o = getNodeBlockPos(floatToInt(objectpos, BS));

// If object's static data is stored in a deactivated block and object
// is actually located in an active block, or the distance between stored
// and actual location of the object, re-save to the block in which
// the object is actually located in.
// is actually located in an active block, or if the object is actually located
// in an active block which is not neighboring to the block in which
// the object's static data is stored (there is at least one block between
// them), re-save to the block in which the object is actually located in.
if (!force_delete && obj->isStaticAllowed() && obj->m_static_exists &&
m_active_blocks.contains(blockpos_o) &&
(!m_active_blocks.contains(obj->m_static_block) ||
Expand Down

0 comments on commit 02317d3

Please sign in to comment.