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

@@ -155,7 +155,7 @@ void Mob::ate()
void Mob::defineSynchedData()
{
LivingEntity::defineSynchedData();
entityData->define(DATA_CUSTOM_NAME_VISIBLE, static_cast<byte>(0));
entityData->define(DATA_CUSTOM_NAME_VISIBLE, static_cast<BYTE>(0));
entityData->define(DATA_CUSTOM_NAME, L"");
}
@@ -865,7 +865,7 @@ bool Mob::hasCustomName()
void Mob::setCustomNameVisible(bool visible)
{
entityData->set(DATA_CUSTOM_NAME_VISIBLE, visible ? static_cast<byte>(1) : static_cast<byte>(0));
entityData->set(DATA_CUSTOM_NAME_VISIBLE, visible ? static_cast<BYTE>(1) : static_cast<BYTE>(0));
}
bool Mob::isCustomNameVisible()