diff --git a/Patches/BuffSystemSpawnServerPatch.cs b/Patches/BuffSystemSpawnServerPatch.cs index ac9c912..518c8be 100644 --- a/Patches/BuffSystemSpawnServerPatch.cs +++ b/Patches/BuffSystemSpawnServerPatch.cs @@ -64,7 +64,6 @@ static void OnUpdatePrefix(BuffSystem_Spawn_Server __instance) PrefabGUID prefabGUID = entity.Read(); string prefabName = prefabGUID.LookupName().ToLower(); - Entity player = Entity.Null; /* there might be some reason I'm forgetting I don't just process these over in deathEventListerSystem but let's try and find out, seems fine but still leaving for now if (prefabGUID.Equals(feedExecute) && entity.GetBuffTarget().TryGetPlayer(out player)) // feed execute kills @@ -116,7 +115,7 @@ static void OnUpdatePrefix(BuffSystem_Spawn_Server __instance) } } } - else if (ConfigService.FamiliarSystem && prefabGUID.Equals(phasing) && entity.GetBuffTarget().TryGetPlayer(out player)) // teleport familiar to player after waygate + else if (ConfigService.FamiliarSystem && prefabGUID.Equals(phasing) && entity.GetBuffTarget().TryGetPlayer(out Entity player)) // teleport familiar to player after waygate { Entity familiar = FamiliarUtilities.FindPlayerFamiliar(player); if (familiar.Exists()) diff --git a/Patches/LinkMinionToOwnerOnSpawnSystemPatch.cs b/Patches/LinkMinionToOwnerOnSpawnSystemPatch.cs index 684e158..e0d35fd 100644 --- a/Patches/LinkMinionToOwnerOnSpawnSystemPatch.cs +++ b/Patches/LinkMinionToOwnerOnSpawnSystemPatch.cs @@ -35,6 +35,8 @@ static void OnUpdatePrefix(LinkMinionToOwnerOnSpawnSystem __instance) { if (entity.GetOwner().TryGetFollowedPlayer(out Entity player)) { + //Core.Log.LogInfo(entity.Read().LookupName() + " " + entity.GetOwner().Read().LookupName()); + Entity familiar = FamiliarUtilities.FindPlayerFamiliar(player); if (familiar.Exists()) { @@ -68,6 +70,10 @@ static void OnUpdatePrefix(LinkMinionToOwnerOnSpawnSystem __instance) } } } + else + { + //Core.Log.LogInfo(entity.Read().LookupName() + " " + entity.GetOwner().Read().LookupName()); + } } } finally