fix: 修复隐藏状态下修改装备装备再次显示的bug

This commit is contained in:
m0_75251201
2025-11-01 23:26:25 +08:00
parent 5cec8711dd
commit b3bf4a9252
40 changed files with 364 additions and 26 deletions

View File

@@ -0,0 +1,17 @@
using HarmonyLib;
namespace HideCharacter
{
[HarmonyPatch(typeof(CharacterEquipmentController), "ChangeEquipmentModel")]
public class PatchCharacterEquipmentControllerChangeEquipmentModel
{
public static void Postfix(CharacterEquipmentController __instance)
{
var manage = ModBehaviour.hideHideCharacterManager;
if (manage!=null)
{
manage.SetCharacterHide(manage.hide);
}
}
}
}