From 11df5b6dbff448a71c3a0b30ef6dc8e7fdfff819 Mon Sep 17 00:00:00 2001 From: Nebby <78170922+Nebby1999@users.noreply.github.com> Date: Fri, 15 Apr 2022 20:18:59 -0400 Subject: [PATCH] specify idrs log is in the log file --- R2API/ItemAPI.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/R2API/ItemAPI.cs b/R2API/ItemAPI.cs index d9d89d7d..4bf7eee9 100644 --- a/R2API/ItemAPI.cs +++ b/R2API/ItemAPI.cs @@ -98,7 +98,7 @@ internal static bool AddInternal(CustomItem item, Assembly addingAssembly) { if(item.ItemDisplayRules.HasInvalidDisplays(out var log)) { R2API.Logger.LogWarning($"Some of the ItemDisplayRules in the dictionary for CustomItem ({item.ItemDef}) have an invalid {nameof(ItemDisplayRule.followerPrefab)}. " + $"(There are ItemDisplayRuleType.ParentedPrefab rules)," + - $"Logging invalid rules..."); + $"Logging invalid rules... (For full details, check the Log file)"); R2API.Logger.LogDebug(log.ToString()); } } @@ -160,7 +160,7 @@ internal static bool AddInternal(CustomEquipment equip, Assembly addingAssembly) if (equip.ItemDisplayRules.HasInvalidDisplays(out var log)) { R2API.Logger.LogWarning($"Some of the ItemDisplayRules in the dictionary for CustomEquipment ({equip.EquipmentDef}) have an invalid {nameof(ItemDisplayRule.followerPrefab)}. " + $"(There are ItemDisplayRuleType.ParentedPrefab rules)," + - $"Logging invalid rules..."); + $"Logging invalid rules... (For full details, check the Log file)"); R2API.Logger.LogDebug(log.ToString()); } } @@ -528,7 +528,7 @@ internal bool HasInvalidDisplays(out StringBuilder logger) { continue; if (!rule.followerPrefab) { - logger.AppendLine($"invalid follower prefab for entry {bodyName}. The follower prefab of entry N°{i} is null. (The ItemDisplayRule.ruleType is ItemDisplayRuleType.ParentedPrefab)"); + logger.AppendLine($"invalid follower prefab for entry {bodyName}. The follower prefab of entry N°{i} is null. (The ItemDisplayRule.ruleType is ItemDisplayRuleType.ParentedPrefab)"); invalidDisplays = true; continue; }