Use BYTE Win Typedef instead of byte typedef from Minecraft.World

This commit is contained in:
GabsPuNs
2026-05-10 21:03:03 -04:00
parent 20d395b88d
commit 3e7983ab3c
216 changed files with 798 additions and 800 deletions

View File

@@ -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()));
}