fix: Cleanup IPoint3D calls (#704)

This commit is contained in:
Kamron Batman 2021-08-19 09:11:48 -07:00 • committed by GitHub
parent 788b04b958
commit 3293ffcf06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 158 additions and 264 deletions

View file

@ -75,7 +75,7 @@ namespace Server.Commands
{
var m = list[i];
if (!m.CanSee(pm) && Utility.InUpdateRange(m, pm))
if (!m.CanSee(pm) && Utility.InUpdateRange(m.Location, pm.Location))
{
OutgoingEntityPackets.CreateRemoveEntity(removeEntity, pm.Serial);
m.NetState?.Send(removeEntity);
@ -110,7 +110,7 @@ namespace Server.Commands
pm.SendMessage("{0} has been added to your visibility list.", targ.Name);
}
if (Utility.InUpdateRange(targ, from))
if (Utility.InUpdateRange(targ.Location, from.Location))
{
var ns = targ.NetState;