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

@@ -47,12 +47,12 @@ void Slime::defineSynchedData()
{
Mob::defineSynchedData();
entityData->define(ID_SIZE, static_cast<byte>(1));
entityData->define(ID_SIZE, static_cast<BYTE>(1));
}
void Slime::setSize(int size)
{
entityData->set(ID_SIZE, static_cast<byte>(size));
entityData->set(ID_SIZE, static_cast<BYTE>(size));
setSize(0.6f * size, 0.6f * size);
setPos(x, y, z);
getAttribute(SharedMonsterAttributes::MAX_HEALTH)->setBaseValue(size * size);