more casting errors fixed

This commit is contained in:
Leah Anderson
2026-03-02 10:52:12 -07:00
parent 143865600c
commit 8947b89f22
5 changed files with 15 additions and 14 deletions

View File

@@ -99,9 +99,9 @@ void ExplodePacket::write(DataOutputStream *dos) //throws IOException
int xx = tp.x-xp;
int yy = tp.y-yp;
int zz = tp.z-zp;
dos->writeByte(xx);
dos->writeByte(yy);
dos->writeByte(zz);
dos->writeByte((std::byte)xx);
dos->writeByte((std::byte)yy);
dos->writeByte((std::byte)zz);
}
}
@@ -133,4 +133,4 @@ float ExplodePacket::getKnockbackY()
float ExplodePacket::getKnockbackZ()
{
return knockbackZ;
}
}