fix: remove byte type alias

This commit is contained in:
Tropical
2026-03-06 05:03:37 -06:00
parent 09eae49d21
commit 15af35eef2
208 changed files with 700 additions and 701 deletions

View File

@@ -139,7 +139,7 @@ shared_ptr<ItemInstance> ItemInstance::useTimeDepleted(Level *level, shared_ptr<
CompoundTag *ItemInstance::save(CompoundTag *compoundTag)
{
compoundTag->putShort(L"id", (short) id);
compoundTag->putByte(L"Count", (byte) count);
compoundTag->putByte(L"Count", (uint8_t) count);
compoundTag->putShort(L"Damage", (short) auxValue);
if (this->tag != NULL) compoundTag->put(L"tag", tag->copy());
return compoundTag;
@@ -622,7 +622,7 @@ void ItemInstance::enchant(const Enchantment *enchantment, int level)
ListTag<CompoundTag> *list = (ListTag<CompoundTag> *) tag->get(L"ench");
CompoundTag *ench = new CompoundTag();
ench->putShort((wchar_t *)TAG_ENCH_ID, (short) enchantment->id);
ench->putShort((wchar_t *)TAG_ENCH_LEVEL, (byte) level);
ench->putShort((wchar_t *)TAG_ENCH_LEVEL, (uint8_t) level);
list->add(ench);
}