DOCS: state that initial_properties are shared between entity instances

This commit is contained in:
Zughy 2024-08-16 21:59:20 +02:00 committed by GitHub
parent dc7a7a0ed9
commit ea96f6e1e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8915,7 +8915,10 @@ Player properties need to be saved manually.
Entity definition
-----------------
Used by `minetest.register_entity`.
Used by `minetest.register_entity`.
The entity definition table becomes a metatable of a newly created per-entity
luaentity table, meaning its fields (e.g. `initial_properties`) will be shared
between all instances of an entity.
```lua
{