mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-10 16:28:36 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -38,7 +38,7 @@ ItemFrame::ItemFrame(Level *level, int xTile, int yTile, int zTile, int dir) : H
|
||||
void ItemFrame::defineSynchedData()
|
||||
{
|
||||
getEntityData()->defineNULL(DATA_ITEM, nullptr);
|
||||
getEntityData()->define(DATA_ROTATION, static_cast<byte>(0));
|
||||
getEntityData()->define(DATA_ROTATION, static_cast<BYTE>(0));
|
||||
}
|
||||
|
||||
bool ItemFrame::shouldRenderAtSqrDistance(double distance)
|
||||
@@ -107,7 +107,7 @@ int ItemFrame::getRotation()
|
||||
|
||||
void ItemFrame::setRotation(int rotation)
|
||||
{
|
||||
getEntityData()->set(DATA_ROTATION, static_cast<byte>(rotation % 4));
|
||||
getEntityData()->set(DATA_ROTATION, static_cast<BYTE>(rotation % 4));
|
||||
}
|
||||
|
||||
void ItemFrame::addAdditonalSaveData(CompoundTag *tag)
|
||||
@@ -115,7 +115,7 @@ void ItemFrame::addAdditonalSaveData(CompoundTag *tag)
|
||||
if (getItem() != nullptr)
|
||||
{
|
||||
tag->putCompound(L"Item", getItem()->save(new CompoundTag()));
|
||||
tag->putByte(L"ItemRotation", static_cast<byte>(getRotation()));
|
||||
tag->putByte(L"ItemRotation", static_cast<BYTE>(getRotation()));
|
||||
tag->putFloat(L"ItemDropChance", dropChance);
|
||||
}
|
||||
HangingEntity::addAdditonalSaveData(tag);
|
||||
|
||||
Reference in New Issue
Block a user