Fix Sign Workshop GUI

This commit is contained in:
Craig Davison 2014-12-01 19:41:39 +00:00
parent d812ff03f2
commit 2ab28e6875
2 changed files with 6 additions and 19 deletions

View File

@ -18,9 +18,9 @@ local forms = {
"list[context;streets:signworkshop_output;6,3;1,1]", "list[context;streets:signworkshop_output;6,3;1,1]",
"list[current_player;main;2,6;8,1]", "list[current_player;main;2,6;8,1]",
"list[current_player;main;2,7.25;8,3;8]", "list[current_player;main;2,7.25;8,3;8]",
gui_bg, default.gui_bg,
gui_bg_img, default.gui_bg_img,
gui_slots, default.gui_slots,
default.get_hotbar_bg(2, 6) default.get_hotbar_bg(2, 6)
}, },
active = { active = {
@ -38,9 +38,9 @@ local forms = {
"list[context;streets:signworkshop_output;6,3;1,1]", "list[context;streets:signworkshop_output;6,3;1,1]",
"list[current_player;main;2,6;8,1]", "list[current_player;main;2,6;8,1]",
"list[current_player;main;2,7.25;8,3;8]", "list[current_player;main;2,7.25;8,3;8]",
gui_bg, default.gui_bg,
gui_bg_img, default.gui_bg_img,
gui_slots, default.gui_slots,
default.get_hotbar_bg(2, 6), default.get_hotbar_bg(2, 6),
-- --
} }

View File

@ -26,19 +26,6 @@ streets = {}
} }
streets.forms = {} streets.forms = {}
-- Support for mimnetest_next's fancy inventories
if gui_bg and gui_bg_img and gui_slots and type(default.get_hotbar_bg) == "function" then
-- Everything fine :)
-- minetest_next rules! :P
else
gui_bg = ""
gui_bg_img = ""
gui_slots = ""
default.get_hotbar_bg = function() return "" end
end
-- rubenwardy: smartfs -- rubenwardy: smartfs
if not minetest.get_modpath("smartfs") then if not minetest.get_modpath("smartfs") then
dofile(streets.modpath .. "/libs/smartfs/smartfs.lua") dofile(streets.modpath .. "/libs/smartfs/smartfs.lua")