Skip to content

Commit

Permalink
1.5.0 - fix cherry-pick for 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
BlazingTwist committed Nov 17, 2024
1 parent 8321463 commit 56f06bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/blazingtwist/itemcounts/ItemCounts.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static void registerAutoconfigTypes() {
int keyDef = getUnsafe(field, defaults, -1);

return Collections.singletonList(entry
.startKeyCodeField(net.minecraft.text.Text.translatable(i13n), key > 0 ? InputUtil.fromKeyCode(key, -1) : InputUtil.UNKNOWN_KEY)
.startKeyCodeField(new net.minecraft.text.TranslatableText(i13n), key > 0 ? InputUtil.fromKeyCode(key, -1) : InputUtil.UNKNOWN_KEY)
.setDefaultValue(keyDef > 0 ? InputUtil.fromKeyCode(keyDef, -1) : InputUtil.UNKNOWN_KEY)
.setKeySaveConsumer(saveKey -> setUnsafe(field, config, saveKey.getCode()))
.build()
Expand Down

0 comments on commit 56f06bb

Please sign in to comment.