mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-04-04 21:31:28 +02:00
Don't reset creative inv. formspec after close
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user