chore: Use var everywhere (#2294)

This commit is contained in:
Kamron Batman 2025-12-27 16:47:28 -08:00 • committed by GitHub
parent 0b34cc4417
commit ebaf104935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
267 changed files with 873 additions and 873 deletions

View file

@ -119,7 +119,7 @@ public static class HousePackets
int z = mte.OffsetZ;
var floor = TileData.ItemTable[mte.ItemId & TileData.MaxItemValue].Height <= 0;
int plane = z switch
var plane = z switch
{
0 => 0,
7 => 1,
@ -195,7 +195,7 @@ public static class HousePackets
continue;
}
int size = i switch
var size = i switch
{
0 => planeLength,
< 5 => (width - 1) * (height - 2) * 2,
@ -208,7 +208,7 @@ public static class HousePackets
writer.Write((byte)(0x20 | i));
writer.Write((byte)size);
WritePacked(source, ref writer, out int destLength);
WritePacked(source, ref writer, out var destLength);
totalLength += 4 + destLength;
}
@ -224,7 +224,7 @@ public static class HousePackets
writer.Write((byte)(9 + index++));
writer.Write((byte)size);
WritePacked(source, ref writer, out int destLength);
WritePacked(source, ref writer, out var destLength);
totalLength += 4 + destLength;
totalPlanes++;
}