Make warning about non-storeables in storage less bad.

This commit is contained in:
Pieter-Jan Briers
2020-12-04 00:11:43 +01:00
parent c3341132c5
commit f7c8e62cee

View File

@@ -153,11 +153,11 @@ namespace Content.Server.GameObjects.Components.Items.Storage
EnsureInitialCalculated();
Logger.DebugS(LoggerName, $"Storage (UID {Owner.Uid}) had entity (UID {message.Entity.Uid}) removed from it.");
Logger.DebugS(LoggerName, $"Storage (UID {Owner}) had entity (UID {message.Entity}) removed from it.");
if (!message.Entity.TryGetComponent(out StorableComponent? storable))
{
Logger.WarningS(LoggerName, $"Removed entity {message.Entity.Uid} without a StorableComponent from storage {Owner.Uid} at {Owner.Transform.MapPosition}");
Logger.WarningS(LoggerName, $"Removed entity {message.Entity} without a StorableComponent from storage {Owner} at {Owner.Transform.MapPosition}");
RecalculateStorageUsed();
return;