fix: Changes IPAddress comparison to use UInt128 (#1897)

This commit is contained in:
Kamron Batman 2024-08-04 09:32:41 -07:00 • committed by GitHub
parent 83db1f91f6
commit 4d47b3849f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 13 deletions

View file

@ -174,7 +174,7 @@ public class AddonGenerator
using var target = PooledRefList<Item>.Create();
foreach(Static s in map.GetItemsInBounds<Static>(bounds))
foreach (Static s in map.GetItemsInBounds<Static>(bounds))
{
if (!range || s.Z >= min && s.Z <= max)
{
@ -189,7 +189,7 @@ public class AddonGenerator
}
// Get correct bounds
foreach(Item item in target)
foreach (Item item in target)
{
if (item.Z < center.Z)
{
@ -241,7 +241,7 @@ public class AddonGenerator
}
}
foreach(Item item in target)
foreach (Item item in target)
{
int xOffset = item.X - center.X;
int yOffset = item.Y - center.Y;