Skip to content
Permalink
Browse files

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 b99a51f468f2dae94345611850b2ee2c85b2f3d6
Showing with 2 additions and 2 deletions.
  1. +2 −2 worldedit_gui/init.lua
@@ -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 ..

0 comments on commit b99a51f

Please sign in to comment.
You can’t perform that action at this time.