4th batch
This commit is contained in:
1 parent
9cfc2e5b16
commit
79c1737c34
33 files changed
+94
-93
No files matched your search
@@ -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