mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 15:48:10 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user