Open xhhejn opened 10 months ago
使用魔法扫把,更换阿比盖尔的皮肤,引发崩溃,日志如下:
LUA ERROR stack traceback: =[C]:-1 in (method) set (C) <-1--1> ../mods/Local Collection Skins all/scripts/init.lua:2138 in (global) abigail_flower_init_fn (Lua) <2133-2143> ../mods/Local Collection Skins all/scripts/prefabs/kleiskinprefabs.lua:27 in (local) _fn (Lua) <27-27> ../mods/Local Collection Skins all/skinloader/skinloader.lua:342 in (upvalue) ApplySkin (Lua) <322-343> ../mods/Local Collection Skins all/skinloader/skinloader.lua:352 in (method) ReskinEntity (Lua) <346-358> scripts/prefabs/reskin_tool.lua:165 in (field) fn (Lua) <117-185> scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216> scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415> scripts/update.lua:240 in () ? (Lua) <224-298>
按照作者回复的,把 /scripts/init.lua 2137行改为 if inst.flower_skin_id and inst.skin_id then,再刷阿比盖尔的皮肤就不会崩溃,谢谢作者大大 👍 :D
使用魔法扫把,更换阿比盖尔的皮肤,引发崩溃,日志如下:
LUA ERROR stack traceback: =[C]:-1 in (method) set (C) <-1--1> ../mods/Local Collection Skins all/scripts/init.lua:2138 in (global) abigail_flower_init_fn (Lua) <2133-2143> ../mods/Local Collection Skins all/scripts/prefabs/kleiskinprefabs.lua:27 in (local) _fn (Lua) <27-27> ../mods/Local Collection Skins all/skinloader/skinloader.lua:342 in (upvalue) ApplySkin (Lua) <322-343> ../mods/Local Collection Skins all/skinloader/skinloader.lua:352 in (method) ReskinEntity (Lua) <346-358> scripts/prefabs/reskin_tool.lua:165 in (field) fn (Lua) <117-185> scripts/scheduler.lua:186 in (method) OnTick (Lua) <164-216> scripts/scheduler.lua:409 in (global) RunScheduler (Lua) <407-415> scripts/update.lua:240 in () ? (Lua) <224-298>