Difference between LuaEntity::revive() and LuaEntity::silent_revive()
Posted: Fri Apr 19, 2024 6:36 am
What is the difference between LuaEntity::revive() and LuaEntity::silent_revive()? Their descriptions look very similar, they seem to be almost identical:
Both can be called with the flag raise_revive, and if that is set, they will raise the same events. So when should LuaEntity::silent_revive() be used? Are there any arguments missing from the documentation?
Code: Select all
$ diff /tmp/revive.txt /tmp/silent_revive.txt
2c2
< revive{return_item_request_proxy?=…, raise_revive?=…} → dictionary[string → uint]?, LuaEntity?, LuaEntity?
---
> silent_revive{return_item_request_proxy?=…, raise_revive?=…} → dictionary[string → uint]?, LuaEntity?, LuaEntity?
4c4
< Revive a ghost. I.e. turn it from a ghost to a real entity or tile.
---
> Revives a ghost silently.
9c9
< If true the function will return item request proxy as the third return value.
---
> If true the function will return item request proxy as the third parameter.
$