Translate item repair cost component

This commit is contained in:
AJ Ferguson 2024-04-30 05:49:22 -04:00
parent 74d6a37261
commit ff9965f559

View file

@ -146,6 +146,11 @@ public class Item {
if (!enchantNbtList.isEmpty()) {
builder.putList("ench", NbtType.COMPOUND, enchantNbtList);
}
Integer repairCost = components.get(DataComponentType.REPAIR_COST);
if (repairCost != null) {
builder.putInt("RepairCost", repairCost);
}
}
/**