Improve hand error log (#13631)

This commit is contained in:
Leon Friedrich
2023-01-22 03:35:51 +13:00
committed by GitHub
parent c3e6ac2563
commit 567d07ef30
2 changed files with 3 additions and 3 deletions

View File

@@ -143,9 +143,9 @@ public abstract partial class SharedHandsSystem : EntitySystem
var entity = hand.Container.ContainedEntity.Value;
if (!hand.Container!.Remove(entity, EntityManager))
if (!hand.Container.Remove(entity, EntityManager))
{
Logger.Error($"{nameof(SharedHandsComponent)} on {uid} could not remove {entity} from {hand.Container}.");
Logger.Error($"Failed to remove {ToPrettyString(entity)} from users hand container when dropping. User: {ToPrettyString(uid)}. Hand: {hand.Name}.");
return;
}

View File

@@ -139,7 +139,7 @@ public abstract partial class SharedHandsSystem : EntitySystem
if (!handContainer.Insert(entity, EntityManager))
{
Logger.Error($"{nameof(SharedHandsComponent)} on {uid} could not insert {entity} into {handContainer}.");
Logger.Error($"Failed to insert {ToPrettyString(entity)} into users hand container when picking up. User: {ToPrettyString(uid)}. Hand: {hand.Name}.");
return;
}