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

@ -54,7 +54,7 @@ public static class OutgoingEntityPackets
return;
}
Span<byte> buffer = stackalloc byte[OPLPacketLength].InitializePacket();
var buffer = stackalloc byte[OPLPacketLength].InitializePacket();
CreateOPLInfo(buffer, serial, hash);
ns.Send(buffer);
@ -79,7 +79,7 @@ public static class OutgoingEntityPackets
return;
}
Span<byte> buffer = stackalloc byte[RemoveEntityLength].InitializePacket();
var buffer = stackalloc byte[RemoveEntityLength].InitializePacket();
CreateRemoveEntity(buffer, serial);
ns.Send(buffer);
@ -96,12 +96,12 @@ public static class OutgoingEntityPackets
writer.Write((byte)0xF3); // Packet ID
writer.Write((short)0x1); // command
int type = 0;
int gfx = 0;
int amount = 1;
int hue = 0;
var type = 0;
var gfx = 0;
var amount = 1;
var hue = 0;
byte light = 0;
int flags = 0;
var flags = 0;
if (entity is BaseMulti multi)
{