Skip to content


Browse files Browse the repository at this point in the history
Re-adapt WorldEdit's GUI button position to creative inventory
  • Loading branch information
kilbith committed Feb 22, 2016
1 parent f2f714c commit 91c5053
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worldedit_gui/init.lua
Expand Up @@ -145,9 +145,9 @@ else --fallback button
if (minetest.check_player_privs(name, {creative=true}) or
minetest.setting_getbool("creative_mode")) and
creative_inventory then --creative_inventory is active, add button to modified formspec
creative then --creative is active, add button to modified formspec
local creative_formspec = player:get_inventory_formspec()
local tab_id = tonumber(creative_formspec:match("tabheader%[.*;(%d)%;.*%]"))
local tab_id = tonumber(creative_formspec:match("tabheader%[.-;(%d+)%;"))

if tab_id == 1 then
formspec = creative_formspec ..
Expand Down

0 comments on commit 91c5053

Please sign in to comment.