mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-09 08:18:06 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -36,7 +36,7 @@ ItemFrame::ItemFrame(Level *level, int xTile, int yTile, int zTile, int dir) : H
|
||||
void ItemFrame::defineSynchedData()
|
||||
{
|
||||
getEntityData()->defineNULL(DATA_ITEM, NULL);
|
||||
getEntityData()->define(DATA_ROTATION, (byte) 0);
|
||||
getEntityData()->define(DATA_ROTATION, (uint8_t) 0);
|
||||
}
|
||||
|
||||
void ItemFrame::dropItem()
|
||||
@@ -79,7 +79,7 @@ int ItemFrame::getRotation()
|
||||
|
||||
void ItemFrame::setRotation(int rotation)
|
||||
{
|
||||
getEntityData()->set(DATA_ROTATION, (byte) (rotation % 4));
|
||||
getEntityData()->set(DATA_ROTATION, (uint8_t) (rotation % 4));
|
||||
}
|
||||
|
||||
void ItemFrame::addAdditonalSaveData(CompoundTag *tag)
|
||||
@@ -87,7 +87,7 @@ void ItemFrame::addAdditonalSaveData(CompoundTag *tag)
|
||||
if (getItem() != NULL)
|
||||
{
|
||||
tag->putCompound(L"Item", getItem()->save(new CompoundTag()));
|
||||
tag->putByte(L"ItemRotation", (byte) getRotation());
|
||||
tag->putByte(L"ItemRotation", (uint8_t) getRotation());
|
||||
//tag->putFloat(L"ItemDropChance", dropChance);
|
||||
}
|
||||
HangingEntity::addAdditonalSaveData(tag);
|
||||
|
||||
Reference in New Issue
Block a user