diff options
| author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-11-24 17:56:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-24 17:56:43 -0500 |
| commit | 8817af07fb72fd78fb753fe5d069d0a65a79742f (patch) | |
| tree | 57b4fc5c96aa4065479a79bcb6001075f9091b72 /doc | |
| parent | 3c7f26d93721d8d86ca5d9e894e8652b1e2a8672 (diff) | |
| download | minetest-8817af07fb72fd78fb753fe5d069d0a65a79742f.tar.xz | |
Deprecate special handling of `${key}` syntax in metadata values (#12970)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/breakages.md | 1 | ||||
| -rw-r--r-- | doc/lua_api.txt | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/breakages.md b/doc/breakages.md index 9f59b9705..52fe6b741 100644 --- a/doc/breakages.md +++ b/doc/breakages.md @@ -9,3 +9,4 @@ This document contains a list of breaking changes to be made in the next major v * remove `depends.txt` / `description.txt` (would simplify ContentDB and Minetest code a little) * rotate moon texture by 180°, making it coherent with the sun (see https://github.com/minetest/minetest/pull/11902) * remove undocumented `set_physics_override(num, num, num)` +* remove special handling of `${key}` syntax in metadata values diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 1630b06dc..1c8cc1022 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -6861,6 +6861,11 @@ Can be obtained via `item:get_meta()`. Base class used by [`StorageRef`], [`NodeMetaRef`], [`ItemStackMetaRef`], and [`PlayerMetaRef`]. +Note: If a metadata value is in the format `${k}`, an attempt to get the value +will return the value associated with key `k`. There is a low recursion limit. +This behavior is **deprecated** and will be removed in a future version. Usage +of the `${k}` syntax in formspecs is not deprecated. + ### Methods * `contains(key)`: Returns true if key present, otherwise false. |
