Content update for NetEntities (#18935)
This commit is contained in:
@@ -51,7 +51,7 @@ public sealed class PricingSystem : EntitySystem
|
||||
|
||||
foreach (var gid in args)
|
||||
{
|
||||
if (!EntityUid.TryParse(gid, out var gridId) || !gridId.IsValid())
|
||||
if (!EntityManager.TryParseNetEntity(gid, out var gridId) || !gridId.Value.IsValid())
|
||||
{
|
||||
shell.WriteError($"Invalid grid ID \"{gid}\".");
|
||||
continue;
|
||||
@@ -90,7 +90,7 @@ public sealed class PricingSystem : EntitySystem
|
||||
|
||||
if (!TryComp<BodyComponent>(uid, out var body) || !TryComp<MobStateComponent>(uid, out var state))
|
||||
{
|
||||
Logger.ErrorS("pricing", $"Tried to get the mob price of {ToPrettyString(uid)}, which has no {nameof(BodyComponent)} and no {nameof(MobStateComponent)}.");
|
||||
Log.Error($"Tried to get the mob price of {ToPrettyString(uid)}, which has no {nameof(BodyComponent)} and no {nameof(MobStateComponent)}.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user