forked from Sokomine/yl_speak_up
fixed bug in fashion if mesh not defined
This commit is contained in:
parent
32510ad974
commit
d267560d2a
@ -502,6 +502,9 @@ yl_speak_up.get_fs_fashion = function(pname)
|
|||||||
-- which texture from the textures list are we talking about?
|
-- which texture from the textures list are we talking about?
|
||||||
-- this depends on the model!
|
-- this depends on the model!
|
||||||
local mesh = yl_speak_up.get_mesh(pname)
|
local mesh = yl_speak_up.get_mesh(pname)
|
||||||
|
if(not(mesh) or not(yl_speak_up.mesh_data[mesh])) then
|
||||||
|
return "size[9,2]label[0,0;Error: Mesh data missing.]"
|
||||||
|
end
|
||||||
local texture_index = yl_speak_up.mesh_data[mesh].texture_index
|
local texture_index = yl_speak_up.mesh_data[mesh].texture_index
|
||||||
if(not(texture_index)) then
|
if(not(texture_index)) then
|
||||||
texture_index = 1
|
texture_index = 1
|
||||||
|
@ -74,7 +74,7 @@ yl_speak_up.get_fs_manage_quests = function(player, param)
|
|||||||
"depend on and influence other quests.\n"..
|
"depend on and influence other quests.\n"..
|
||||||
"Progress for each player is stored in a variable. The name of "..
|
"Progress for each player is stored in a variable. The name of "..
|
||||||
"that variable cannot be changed after creation.]")
|
"that variable cannot be changed after creation.]")
|
||||||
-- if(true) then return formspec[1] end -- TODO: temporally disabled for YL
|
if(true) then return formspec[1] end -- TODO: temporally disabled for YL
|
||||||
local selected = yl_speak_up.get_fs_manage_general(player, param,
|
local selected = yl_speak_up.get_fs_manage_general(player, param,
|
||||||
formspec, quest_list,
|
formspec, quest_list,
|
||||||
"Create quest",
|
"Create quest",
|
||||||
|
Loading…
Reference in New Issue
Block a user