1
0
Fork 0
mirror of https://github.com/GeyserMC/Geyser.git synced 2025-03-04 23:36:53 +01: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);
}
}
/**