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:
parent
7a5d76a9bc
commit
1a9f66f091
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user