mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Disable inventory if player's inventory formspec is blank (#11827)
This commit is contained in:
@@ -6690,6 +6690,7 @@ object you are working with still exists.
|
||||
* `set_inventory_formspec(formspec)`
|
||||
* Redefine player's inventory form
|
||||
* Should usually be called in `on_joinplayer`
|
||||
* If `formspec` is `""`, the player's inventory is disabled.
|
||||
* `get_inventory_formspec()`: returns a formspec string
|
||||
* `set_formspec_prepend(formspec)`:
|
||||
* the formspec string will be added to every formspec shown to the user,
|
||||
|
Reference in New Issue
Block a user