From fcf86ded8f8f5f0b0da9a59e4e9035838bf19d01 Mon Sep 17 00:00:00 2001 From: ROllerozxa Date: Mon, 13 Dec 2021 17:43:29 +0100 Subject: Disable inventory if player's inventory formspec is blank (#11827) --- doc/lua_api.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index e26497555..ee7d63101 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -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, -- cgit v1.2.3