Translate item repair cost component

This commit is contained in:
AJ Ferguson 2024-04-30 05:49:22 -04:00
parent 74d6a37261
commit ff9965f559
1 changed files with 5 additions and 0 deletions

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);
}
}
/**