mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-11-26 08:51:47 +01:00
Translate item repair cost component
This commit is contained in:
parent
74d6a37261
commit
ff9965f559
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue