1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-12-30 20:29:19 +00:00

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