Fix pulling crash on round restart
This commit is contained in:
@@ -69,6 +69,8 @@ namespace Content.Shared.Pulling.Components
|
|||||||
var message = new PullStoppedMessage(oldPullerPhysics, _physics);
|
var message = new PullStoppedMessage(oldPullerPhysics, _physics);
|
||||||
|
|
||||||
eventBus.RaiseLocalEvent(oldPuller.Uid, message, broadcast: false);
|
eventBus.RaiseLocalEvent(oldPuller.Uid, message, broadcast: false);
|
||||||
|
|
||||||
|
if (Owner.LifeStage <= EntityLifeStage.MapInitialized)
|
||||||
eventBus.RaiseLocalEvent(Owner.Uid, message);
|
eventBus.RaiseLocalEvent(Owner.Uid, message);
|
||||||
|
|
||||||
_physics.WakeBody();
|
_physics.WakeBody();
|
||||||
|
|||||||
Reference in New Issue
Block a user