diff --git a/Commands/FamiliarCommands.cs b/Commands/FamiliarCommands.cs index d80a400..adb37c4 100644 --- a/Commands/FamiliarCommands.cs +++ b/Commands/FamiliarCommands.cs @@ -733,7 +733,7 @@ public static void SetFamiliarLevel(ChatCommandContext ctx, string name, int lev if (steamId.TryGetFamiliarActives(out var data) && !data.FamKey.Equals(0)) { - Entity player = ctx.Event.SenderCharacterEntity; + Entity player = playerInfo.CharEntity; Entity familiar = FamiliarUtilities.FindPlayerFamiliar(player); int famKey = data.FamKey; diff --git a/Core.cs b/Core.cs index 4d42c5d..ce14aff 100644 --- a/Core.cs +++ b/Core.cs @@ -84,7 +84,7 @@ public static void Initialize() //DeathEventListenerSystemPatch.OnDeathEvent += FamiliarLevelingSystem.OnUpdate; DeathEventListenerSystemPatch.OnDeathEvent += FamiliarUnlockSystem.OnUpdate; } - + AffectPrisonerWithToxic //JobsUtility.JobScheduleParameters //PrefabLookupUtility.TryGetConvertedAssetDataForPrefab