SubscribeEvent() has been split into SubscribeNetworkEvent() and SubscribeLocalEvent() methods on EntitySystem.
Most methods on EntityEventBus now require callers to specify the source (Local or Network) of the events.
This commit is contained in:
@@ -168,7 +168,8 @@ namespace Content.Server.GameObjects
|
||||
|
||||
currentstate = threshold;
|
||||
|
||||
Owner.RaiseEvent(new MobDamageStateChangedMessage(this));
|
||||
EntityEventArgs toRaise = new MobDamageStateChangedMessage(this);
|
||||
Owner.EntityManager.EventBus.RaiseEvent(EventSource.Local, toRaise);
|
||||
}
|
||||
|
||||
void IExAct.OnExplosion(ExplosionEventArgs eventArgs)
|
||||
|
||||
Reference in New Issue
Block a user