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

@@ -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);