This commit is contained in:
onebeastchris 2024-07-04 16:21:02 +02:00
parent f129ef488a
commit 826be80e2f

View file

@ -81,7 +81,7 @@ public class ShulkerBoxItem extends BlockItem {
} else {
// Manual checks for potions/tipped arrows
if (boxMapping.getJavaItem() instanceof PotionItem || boxMapping.getJavaItem() instanceof ArrowItem) {
PotionContents potionContents = components.get(DataComponentType.POTION_CONTENTS);
PotionContents potionContents = boxComponents.get(DataComponentType.POTION_CONTENTS);
if (potionContents != null) {
Potion potion = Potion.getByJavaId(potionContents.getPotionId());
if (potion != null) {