From d267560d2ab86e857d1cec174fc225c0c53e4b80 Mon Sep 17 00:00:00 2001 From: Sokomine Date: Sun, 24 Sep 2023 00:24:14 +0200 Subject: [PATCH] fixed bug in fashion if mesh not defined --- fs_fashion.lua | 3 +++ fs_manage_quests.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/fs_fashion.lua b/fs_fashion.lua index 71376c0..641a657 100644 --- a/fs_fashion.lua +++ b/fs_fashion.lua @@ -502,6 +502,9 @@ yl_speak_up.get_fs_fashion = function(pname) -- which texture from the textures list are we talking about? -- this depends on the model! 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 if(not(texture_index)) then texture_index = 1 diff --git a/fs_manage_quests.lua b/fs_manage_quests.lua index b22d145..f2a86bc 100644 --- a/fs_manage_quests.lua +++ b/fs_manage_quests.lua @@ -74,7 +74,7 @@ yl_speak_up.get_fs_manage_quests = function(player, param) "depend on and influence other quests.\n".. "Progress for each player is stored in a variable. The name of ".. "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, formspec, quest_list, "Create quest",