Fix engine proxy methods (#46057)

This commit is contained in:
metalgearsloth 2026-09-17 23:57:21 +10:00 • committed by GitHub
parent a023e5784c
commit 0b8f6c81db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 5 additions and 5 deletions

View file

@ -27,7 +27,7 @@ public sealed partial class PlantTraitKudzuSystem : EntitySystem
// Handle kudzu transformation.
if (trayComp.WeedLevel >= ent.Comp.WeedLevelThreshold)
{
EntityManager.PredictedSpawn(ent.Comp.KudzuPrototype, _transform.GetMapCoordinates(ent.Owner));
PredictedSpawn(ent.Comp.KudzuPrototype, _transform.GetMapCoordinates(ent.Owner));
RemComp<PlantTraitKudzuComponent>(ent.Owner);
_plantHolder.KillPlant(ent.Owner);
}

View file

@ -93,7 +93,7 @@ public sealed partial class LogProbeCartridgeSystem : EntitySystem
ent.Comp.NextPrintAllowed = _timing.CurTime + ent.Comp.PrintCooldown;
var paper = EntityManager.PredictedSpawn(ent.Comp.PaperPrototype, _transform.GetMapCoordinates(user));
var paper = PredictedSpawn(ent.Comp.PaperPrototype, _transform.GetMapCoordinates(user));
_label.Label(paper, ent.Comp.EntityName); // label it for easy identification
_audio.PlayEntity(ent.Comp.PrintSound, user, paper);

View file

@ -161,7 +161,7 @@ public sealed partial class IngestionSystem
foreach (var trash in trashes)
{
var spawnedTrash = EntityManager.PredictedSpawn(trash, position);
var spawnedTrash = PredictedSpawn(trash, position);
// If the user is holding the item
if (!pickup)

View file

@ -94,7 +94,7 @@ public abstract partial class SharedTabletopSystem : EntitySystem
var meta = MetaData(handEnt.Value);
var protoId = meta.EntityPrototype?.ID;
var hologram = EntityManager.PredictedSpawn(protoId, session.Position.Offset(-1, 0));
var hologram = PredictedSpawn(protoId, session.Position.Offset(-1, 0));
// Make sure the entity can be dragged and can be removed, move it into the board game world and add it to the Entities hashmap.
EnsureComp<TabletopDraggableComponent>(hologram);

View file

@ -72,7 +72,7 @@ public sealed partial class TriggerSystem
{
var mapCoords = _transform.GetMapCoordinates(target);
if (predicted)
EntityManager.PredictedSpawn(proto, mapCoords);
PredictedSpawn(proto, mapCoords);
else if (_net.IsServer)
Spawn(proto, mapCoords);
}