mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2025-01-09 14:27:36 +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)
|
worldedit.register_gui_handler = function(identifier, handler)
|
||||||
local enabled = true
|
local enabled = true
|
||||||
minetest.register_on_player_receive_fields(function(player, formname, fields)
|
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
|
enabled = false
|
||||||
minetest.after(0.2, function() enabled = true end)
|
minetest.after(0.2, function() enabled = true end)
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
|
Loading…
Reference in New Issue
Block a user