Improve hand error log (#13631)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user