1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-26 18:21:04 +00:00

Deprecate special handling of ${key} syntax in metadata values (#12970)

This commit is contained in:
Jude Melton-Houghton 2022-11-24 17:56:43 -05:00 committed by GitHub
parent 3c7f26d937
commit 8817af07fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 6 deletions

View file

@ -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

View file

@ -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.