]> git.lizzy.rs Git - minetest.git/commit
Handle multiple deserialization of a block's entities
authorRogier <rogier777@gmail.com>
Sun, 11 Dec 2016 17:47:50 +0000 (18:47 +0100)
committersfan5 <sfan5@live.de>
Mon, 12 Aug 2019 17:14:07 +0000 (19:14 +0200)
commita067d404542704c3bcc284262f588fba398b3102
treeb390a54cacdb4131a55ed2b1332acb556aa43c66
parent33fdd48a763f2a0040a363958f1ca7a0d4f47ba4
Handle multiple deserialization of a block's entities

This fix consists of two parts:
- Clear the list of stored entities. This has no side-effects.
- Catch the case where active entities exist and print a message.
  Clearing the active entitiy list has side-effects that should
  be handled. (those entities are known to the environment and
  to clients).

  As avoiding those side-effects is more complex, and as this
  problem is not expected to occur (with PR #4847 merged), there
  is no real incentive to implement this ATM.

This issue was a contributing factor to bug #4217. With the other
contributing factor removed (PR #4847), this commit makes sure this
factor does not go unnoticed if it ever happens again.
src/staticobject.cpp