Skip to content

Commit

Permalink
Fix the creative inventory being borked if neither Unified Inventory …
Browse files Browse the repository at this point in the history
…or Inventory++ is installed (thanks cheapie!).
  • Loading branch information
Uberi committed Jan 2, 2014
1 parent 8c0b611 commit d73b93d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worldedit_gui/init.lua
Expand Up @@ -129,8 +129,8 @@ else --fallback button
return
end
local player = minetest.get_player_by_name(name)
if minetest.setting_getbool("creative_mode") and creative_inventory then --creative_inventory is active
formspec = formspec .. "image_button[6,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
if minetest.setting_getbool("creative_mode") and creative_inventory then --creative_inventory is active, add button to modified formspec
formspec = player:get_inventory_formspec() .. "image_button[6,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
else
formspec = formspec .. "image_button[0,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
end
Expand Down

0 comments on commit d73b93d

Please sign in to comment.