mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-09 13:41:54 +00:00
third batch of fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user