mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-24 07:15:29 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -28,7 +28,7 @@ void LevelEventPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
type = dis->readInt();
|
||||
x = dis->readInt();
|
||||
y = (int)(dis->readByte() & (byte)0xff);
|
||||
y = (int)(dis->readByte() & (uint8_t)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((byte)(y & 0xff));
|
||||
dos->writeByte((uint8_t)(y & 0xff));
|
||||
dos->writeInt(z);
|
||||
dos->writeInt(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user