Fix undeclared "mcl_formspec" on non mcl games (#6)
This commit is contained in:
parent
021052f434
commit
ad6c6b1138
5
init.lua
5
init.lua
@ -10,6 +10,7 @@ local unified_inventory_modpath = minetest.get_modpath("unified_inventory")
|
|||||||
local sfinv_buttons_modpath = minetest.get_modpath("sfinv_buttons")
|
local sfinv_buttons_modpath = minetest.get_modpath("sfinv_buttons")
|
||||||
local sfinv_modpath = minetest.get_modpath("sfinv")
|
local sfinv_modpath = minetest.get_modpath("sfinv")
|
||||||
local mcl_books_modpath = minetest.get_modpath("mcl_books")
|
local mcl_books_modpath = minetest.get_modpath("mcl_books")
|
||||||
|
local mcl_formspec_modpath = minetest.get_modpath("mcl_formspec")
|
||||||
|
|
||||||
local modstore = minetest.get_mod_storage()
|
local modstore = minetest.get_mod_storage()
|
||||||
|
|
||||||
@ -47,7 +48,7 @@ elseif mcl_books_modpath then
|
|||||||
end
|
end
|
||||||
|
|
||||||
local mcl_formspec_itemslot
|
local mcl_formspec_itemslot
|
||||||
if mcl_formspec then
|
if mcl_formspec_modpath then
|
||||||
mcl_formspec_itemslot = mcl_formspec.get_itemslot_bg
|
mcl_formspec_itemslot = mcl_formspec.get_itemslot_bg
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -816,4 +817,4 @@ end
|
|||||||
|
|
||||||
personal_log.add_general_entry = function(player_name, content, general_topic)
|
personal_log.add_general_entry = function(player_name, content, general_topic)
|
||||||
add_entry_for_player(player_name, GENERAL_CATEGORY, content, general_topic)
|
add_entry_for_player(player_name, GENERAL_CATEGORY, content, general_topic)
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user