fix: Fix sending blockers to GMs (#1441)
This commit is contained in:
parent
29ffc9cd52
commit
bd661da81c
2 changed files with 10 additions and 8 deletions
|
|
@ -18,13 +18,14 @@ public partial class Blocker : Item
|
|||
public override void SendWorldPacketTo(NetState ns, ReadOnlySpan<byte> world = default)
|
||||
{
|
||||
var mob = ns.Mobile;
|
||||
if (AccessLevel.GameMaster >= mob?.AccessLevel)
|
||||
if (mob?.AccessLevel >= AccessLevel.GameMaster)
|
||||
{
|
||||
SendGMItem(ns);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.SendWorldPacketTo(ns, world);
|
||||
return;
|
||||
}
|
||||
|
||||
SendGMItem(ns);
|
||||
}
|
||||
|
||||
private void SendGMItem(NetState ns)
|
||||
|
|
|
|||
|
|
@ -28,13 +28,14 @@ public partial class LOSBlocker : Item
|
|||
public override void SendWorldPacketTo(NetState ns, ReadOnlySpan<byte> world = default)
|
||||
{
|
||||
var mob = ns.Mobile;
|
||||
if (AccessLevel.GameMaster >= mob?.AccessLevel)
|
||||
if (mob?.AccessLevel >= AccessLevel.GameMaster)
|
||||
{
|
||||
SendGMItem(ns);
|
||||
}
|
||||
else
|
||||
{
|
||||
base.SendWorldPacketTo(ns, world);
|
||||
return;
|
||||
}
|
||||
|
||||
SendGMItem(ns);
|
||||
}
|
||||
|
||||
private void SendGMItem(NetState ns)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue