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

@@ -63,7 +63,7 @@ void Skeleton::defineSynchedData()
{
Monster::defineSynchedData();
entityData->define(DATA_TYPE_ID, static_cast<byte>(TYPE_DEFAULT));
entityData->define(DATA_TYPE_ID, static_cast<BYTE>(TYPE_DEFAULT));
}
bool Skeleton::useNewAi()
@@ -311,7 +311,7 @@ int Skeleton::getSkeletonType()
void Skeleton::setSkeletonType(int type)
{
entityData->set(DATA_TYPE_ID, static_cast<byte>(type));
entityData->set(DATA_TYPE_ID, static_cast<BYTE>(type));
fireImmune = type == TYPE_WITHER;
if (type == TYPE_WITHER)
@@ -340,7 +340,7 @@ void Skeleton::readAdditionalSaveData(CompoundTag *tag)
void Skeleton::addAdditonalSaveData(CompoundTag *entityTag)
{
Monster::addAdditonalSaveData(entityTag);
entityTag->putByte(L"SkeletonType", static_cast<byte>(getSkeletonType()));
entityTag->putByte(L"SkeletonType", static_cast<BYTE>(getSkeletonType()));
}
void Skeleton::setEquippedSlot(int slot, shared_ptr<ItemInstance> item)