Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #107 from kilbith/master
Re-adapt WorldEdit's GUI button position to new creative inventory
  • Loading branch information
sfan5 committed Feb 22, 2016
2 parents f2f714c + 91c5053 commit b99a51f
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
end
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 b99a51f

Please sign in to comment.