4th batch

This commit is contained in:
Leah Anderson
2026-03-02 12:00:59 -07:00
parent 9cfc2e5b16
commit 79c1737c34
33 changed files with 94 additions and 93 deletions

View File

@@ -28,7 +28,7 @@ void LevelEventPacket::read(DataInputStream *dis) //throws IOException
{
type = dis->readInt();
x = dis->readInt();
y = (int)(dis->readByte() & (std::byte)0xff);
y = (int)(dis->readByte() & (byte)0xff);
z = dis->readInt();
data = dis->readInt();
}
@@ -37,7 +37,7 @@ void LevelEventPacket::write(DataOutputStream *dos) //throws IOException
{
dos->writeInt(type);
dos->writeInt(x);
dos->writeByte((std::byte)(y & 0xff));
dos->writeByte((byte)(y & 0xff));
dos->writeInt(z);
dos->writeInt(data);
}