Skip to content

Commit

Permalink
Translate item repair cost component
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ-Ferguson committed Apr 30, 2024
1 parent 74d6a37 commit ff9965f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/main/java/org/geysermc/geyser/item/type/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,11 @@ public void translateComponentsToBedrock(@NonNull GeyserSession session, @NonNul
if (!enchantNbtList.isEmpty()) {
builder.putList("ench", NbtType.COMPOUND, enchantNbtList);
}

Integer repairCost = components.get(DataComponentType.REPAIR_COST);
if (repairCost != null) {
builder.putInt("RepairCost", repairCost);
}
}

/**
Expand Down

0 comments on commit ff9965f

Please sign in to comment.