mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-16 14:11:57 +00:00
4th batch
This commit is contained in:
@@ -39,7 +39,7 @@ AddGlobalEntityPacket::AddGlobalEntityPacket(shared_ptr<Entity> e)
|
||||
void AddGlobalEntityPacket::read(DataInputStream *dis) // throws IOException
|
||||
{
|
||||
id = dis->readInt();
|
||||
type = std::to_integer<int>(dis->readByte());
|
||||
type = static_cast<int>(dis->readByte());
|
||||
x = dis->readInt();
|
||||
y = dis->readInt();
|
||||
z = dis->readInt();
|
||||
@@ -48,7 +48,7 @@ void AddGlobalEntityPacket::read(DataInputStream *dis) // throws IOException
|
||||
void AddGlobalEntityPacket::write(DataOutputStream *dos) // throws IOException
|
||||
{
|
||||
dos->writeInt(id);
|
||||
dos->writeByte(static_cast<std::byte>(type));
|
||||
dos->writeByte(static_cast<byte>(type));
|
||||
dos->writeInt(x);
|
||||
dos->writeInt(y);
|
||||
dos->writeInt(z);
|
||||
|
||||
Reference in New Issue
Block a user