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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user