fix(core): Cleans up OPL code (#396)
- [X] Cleans up OPL code to simplify the calls
This commit is contained in:
parent
5882b1ab3f
commit
0b9fb9c071
6 changed files with 28 additions and 70 deletions
|
|
@ -880,19 +880,11 @@ namespace Server.Multis
|
|||
DesignState.SendDetailedInfoTo(ns);
|
||||
}
|
||||
|
||||
public override void SendInfoTo(NetState ns, bool sendOplPacket)
|
||||
{
|
||||
base.SendInfoTo(ns, sendOplPacket);
|
||||
|
||||
var stateToSend = DesignContext.Find(ns.Mobile)?.Foundation == this ? DesignState : CurrentState;
|
||||
stateToSend.SendGeneralInfoTo(ns);
|
||||
}
|
||||
|
||||
public override void SendInfoTo(NetState ns, ReadOnlySpan<byte> world, Span<byte> opl)
|
||||
public override void SendInfoTo(NetState ns, ReadOnlySpan<byte> world = default, Span<byte> opl = default)
|
||||
{
|
||||
base.SendInfoTo(ns, world, opl);
|
||||
|
||||
var stateToSend = DesignContext.Find(ns.Mobile)?.Foundation == this ? DesignState : CurrentState;
|
||||
var stateToSend = DesignContext.Find(ns?.Mobile)?.Foundation == this ? DesignState : CurrentState;
|
||||
stateToSend.SendGeneralInfoTo(ns);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue