mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 22:09:25 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -57,7 +57,7 @@ void Ocelot::defineSynchedData()
|
||||
{
|
||||
TamableAnimal::defineSynchedData();
|
||||
|
||||
entityData->define(DATA_TYPE_ID, static_cast<byte>(0));
|
||||
entityData->define(DATA_TYPE_ID, static_cast<BYTE>(0));
|
||||
}
|
||||
|
||||
void Ocelot::serverAiMobStep()
|
||||
@@ -279,7 +279,7 @@ int Ocelot::getCatType()
|
||||
|
||||
void Ocelot::setCatType(int type)
|
||||
{
|
||||
entityData->set(DATA_TYPE_ID, static_cast<byte>(type));
|
||||
entityData->set(DATA_TYPE_ID, static_cast<BYTE>(type));
|
||||
}
|
||||
|
||||
bool Ocelot::canSpawn()
|
||||
@@ -350,12 +350,12 @@ MobGroupData *Ocelot::finalizeMobSpawn(MobGroupData *groupData, int extraData /*
|
||||
|
||||
void Ocelot::setSittingOnTile(bool val)
|
||||
{
|
||||
byte current = entityData->getByte(DATA_FLAGS_ID);
|
||||
entityData->set(DATA_FLAGS_ID, val ? static_cast<byte>(current | 0x02) : static_cast<byte>(current & ~0x02) );
|
||||
BYTE current = entityData->getByte(DATA_FLAGS_ID);
|
||||
entityData->set(DATA_FLAGS_ID, val ? static_cast<BYTE>(current | 0x02) : static_cast<BYTE>(current & ~0x02) );
|
||||
}
|
||||
|
||||
bool Ocelot::isSittingOnTile()
|
||||
{
|
||||
byte current = entityData->getByte(DATA_FLAGS_ID);
|
||||
BYTE current = entityData->getByte(DATA_FLAGS_ID);
|
||||
return (current & 0x02) > 0;
|
||||
}
|
||||
Reference in New Issue
Block a user