1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-24 01:30:40 +01:00

Fix back button in some worldedit_gui pages

This commit is contained in:
luk3yx 2023-05-25 20:21:51 +12:00 committed by sfan5
parent 7a5d76a9bc
commit 1a9f66f091

View File

@ -42,7 +42,7 @@ Example:
worldedit.register_gui_handler = function(identifier, handler)
local enabled = true
minetest.register_on_player_receive_fields(function(player, formname, fields)
if not enabled then return false end
if not enabled or formname ~= "" or fields.worldedit_gui then return false end
enabled = false
minetest.after(0.2, function() enabled = true end)
local name = player:get_player_name()