mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-22 16:09:33 +01:00
Don't reset creative inv. formspec after close
This commit is contained in:
parent
c935e78ef4
commit
571ba4ce30
1 changed files with 2 additions and 1 deletions
|
@ -358,7 +358,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
|||
if not minetest.setting_getbool("creative_mode") then
|
||||
return
|
||||
end
|
||||
if formname ~= "" then
|
||||
if formname ~= "" or fields.quit == "true" then
|
||||
-- No-op if formspec closed or not player inventory (formname == "")
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue