Use BYTE Win Typedef instead of byte typedef from Minecraft.World

This commit is contained in:
GabsPuNs
2026-05-10 21:03:03 -04:00
parent 20d395b88d
commit 3e7983ab3c
216 changed files with 798 additions and 800 deletions

View File

@@ -29,7 +29,7 @@ AddMobPacket::AddMobPacket(shared_ptr<LivingEntity> mob, int yRotp, int xRotp, i
{
id = mob->entityId;
type = static_cast<byte>(EntityIO::getId(mob));
type = static_cast<BYTE>(EntityIO::getId(mob));
// 4J Stu - We should add entities at their "last sent" position so that the relative update packets
// put them in the correct place
x = xp;//Mth::floor(mob->x * 32);
@@ -39,9 +39,9 @@ AddMobPacket::AddMobPacket(shared_ptr<LivingEntity> mob, int yRotp, int xRotp, i
yRot = yRotp;
xRot = xRotp;
yHeadRot = yHeadRotp;
// yRot = (byte) (mob->yRot * 256 / 360);
// xRot = (byte) (mob->xRot * 256 / 360);
// yHeadRot = (byte) (mob->yHeadRot * 256 / 360);
// yRot = (BYTE) (mob->yRot * 256 / 360);
// xRot = (BYTE) (mob->xRot * 256 / 360);
// yHeadRot = (BYTE) (mob->yHeadRot * 256 / 360);
// From SetEntityMotionpacket
double m = 3.9;