mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-07-11 01:18:20 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
This commit is contained in:
@@ -204,7 +204,7 @@ bool ItemEntity::hurt(DamageSource *source, float damage)
|
||||
|
||||
void ItemEntity::addAdditonalSaveData(CompoundTag *entityTag)
|
||||
{
|
||||
entityTag->putShort(L"Health", static_cast<byte>(health));
|
||||
entityTag->putShort(L"Health", static_cast<BYTE>(health));
|
||||
entityTag->putShort(L"Age", static_cast<short>(age));
|
||||
if (getItem() != nullptr) entityTag->putCompound(L"Item", getItem()->save(new CompoundTag()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user