mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-08 11:58:16 +00:00
fix: remove byte type alias
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user