forked from mtcontrib/Minetest-WorldEdit
Fix the creative inventory being borked if neither Unified Inventory or Inventory++ is installed (thanks cheapie!).
This commit is contained in:
parent
8c0b61194c
commit
d73b93d8dd
|
@ -129,8 +129,8 @@ else --fallback button
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local player = minetest.get_player_by_name(name)
|
local player = minetest.get_player_by_name(name)
|
||||||
if minetest.setting_getbool("creative_mode") and creative_inventory then --creative_inventory is active
|
if minetest.setting_getbool("creative_mode") and creative_inventory then --creative_inventory is active, add button to modified formspec
|
||||||
formspec = formspec .. "image_button[6,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
|
formspec = player:get_inventory_formspec() .. "image_button[6,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
|
||||||
else
|
else
|
||||||
formspec = formspec .. "image_button[0,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
|
formspec = formspec .. "image_button[0,0;1,1;inventory_plus_worldedit_gui.png;worldedit_gui;]"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user