third batch of fixes

This commit is contained in:
Leah Anderson
2026-03-02 11:28:02 -07:00
parent 87c2aa0dba
commit e729d27372
6 changed files with 38 additions and 38 deletions

View File

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