Skip to content

Commit cdac382

Browse files
committed
How did we not realize this for so long 💀
TL;DR water bottles still have interaction, so the consumable component doesn't work. Changing it to clay balls allows it to work.
1 parent f021b00 commit cdac382

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rebar/src/main/kotlin/io/github/pylonmc/rebar/i18n/RebarTranslator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,8 @@ class RebarTranslator private constructor(private val addon: RebarAddon) : Trans
204204
// Potions are wacky wrt names, so we lie to the client about the type and set the model data
205205
val oldStack = clone()
206206
@Suppress("DEPRECATION")
207-
type = Material.GLASS_BOTTLE
208-
check(type == Material.GLASS_BOTTLE) { "ItemStack.setType no longer works" }
207+
type = Material.CLAY_BALL
208+
check(type == Material.CLAY_BALL) { "ItemStack.setType no longer works" }
209209
copyDataFrom(oldStack) { true }
210210
editData(DataComponentTypes.ITEM_MODEL) { oldStack.type.key }
211211
}

0 commit comments

Comments
 (0)