Refactor priv determination in worldedit_gui

This commit is contained in:
sfan5
2017-05-13 11:51:02 +02:00
parent 38e9b42caf
commit a31f955fb1
2 changed files with 62 additions and 24 deletions

View File

@ -243,6 +243,7 @@ end
worldedit.register_gui_function("worldedit_gui", {
name = "WorldEdit GUI",
privs = {interact=true},
get_formspec = function(name)
--create a form with all the buttons arranged in a grid
local buttons, x, y, index = {}, 0, 1, 0