mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-13 04:58:27 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -67,9 +67,9 @@ void EnderMan::defineSynchedData()
|
||||
{
|
||||
Monster::defineSynchedData();
|
||||
|
||||
entityData->define(DATA_CARRY_ITEM_ID, static_cast<byte>(0));
|
||||
entityData->define(DATA_CARRY_ITEM_DATA, static_cast<byte>(0));
|
||||
entityData->define(DATA_CREEPY, static_cast<byte>(0));
|
||||
entityData->define(DATA_CARRY_ITEM_ID, static_cast<BYTE>(0));
|
||||
entityData->define(DATA_CARRY_ITEM_DATA, static_cast<BYTE>(0));
|
||||
entityData->define(DATA_CREEPY, static_cast<BYTE>(0));
|
||||
}
|
||||
|
||||
void EnderMan::addAdditonalSaveData(CompoundTag *tag)
|
||||
@@ -385,7 +385,7 @@ void EnderMan::dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel)
|
||||
// 4J Brought forward from 1.2.3 to help fix Enderman behaviour
|
||||
void EnderMan::setCarryingTile(int carryingTile)
|
||||
{
|
||||
entityData->set(DATA_CARRY_ITEM_ID, static_cast<byte>(carryingTile & 0xff));
|
||||
entityData->set(DATA_CARRY_ITEM_ID, static_cast<BYTE>(carryingTile & 0xff));
|
||||
}
|
||||
|
||||
int EnderMan::getCarryingTile()
|
||||
@@ -395,7 +395,7 @@ int EnderMan::getCarryingTile()
|
||||
|
||||
void EnderMan::setCarryingData(int carryingData)
|
||||
{
|
||||
entityData->set(DATA_CARRY_ITEM_DATA, static_cast<byte>(carryingData & 0xff));
|
||||
entityData->set(DATA_CARRY_ITEM_DATA, static_cast<BYTE>(carryingData & 0xff));
|
||||
}
|
||||
|
||||
int EnderMan::getCarryingData()
|
||||
@@ -440,5 +440,5 @@ bool EnderMan::isCreepy()
|
||||
|
||||
void EnderMan::setCreepy(bool creepy)
|
||||
{
|
||||
entityData->set(DATA_CREEPY, static_cast<byte>(creepy ? 1 : 0));
|
||||
entityData->set(DATA_CREEPY, static_cast<BYTE>(creepy ? 1 : 0));
|
||||
}
|
||||
Reference in New Issue
Block a user