1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-24 21:35:21 +02:00

Revert empty form name deprecation warnings

This commit is contained in:
Lars Müller
2024-08-20 11:49:41 +02:00
committed by SmallJoker
parent 93ac2ed894
commit 5094838837
2 changed files with 3 additions and 12 deletions

View File

@@ -6451,7 +6451,8 @@ Formspec
* `playername`: name of player to show formspec
* `formname`: name passed to `on_player_receive_fields` callbacks.
It should follow the `"modname:<whatever>"` naming convention.
`formname` must not be empty.
* `formname` must not be empty, unless you want to reshow
the inventory formspec without updating it for future opens.
* `formspec`: formspec to display
* `minetest.close_formspec(playername, formname)`
* `playername`: name of player to close formspec