Skip to content
Browse files

Re-adapt WorldEdit's GUI button position to creative inventory

  • Loading branch information...
kilbith committed Feb 22, 2016
1 parent f2f714c commit 91c5053e673b404c4acdca147e5d68bb7098becf
Showing with 2 additions and 2 deletions.
  1. +2 −2 worldedit_gui/init.lua
@@ -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 ..

0 comments on commit 91c5053

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