diff --git a/src/main/java/com/minelittlepony/unicopia/item/DragonBreathScrollItem.java b/src/main/java/com/minelittlepony/unicopia/item/DragonBreathScrollItem.java index 09d62168f..1639bbcbd 100644 --- a/src/main/java/com/minelittlepony/unicopia/item/DragonBreathScrollItem.java +++ b/src/main/java/com/minelittlepony/unicopia/item/DragonBreathScrollItem.java @@ -30,9 +30,9 @@ public TypedActionResult use(World world, PlayerEntity player, Hand h return TypedActionResult.fail(stack); } - stack.split(1); + ItemStack scroll = stack.split(1); if (!world.isClient) { - String recipient = stack.get(DataComponentTypes.CUSTOM_NAME).getString(); + String recipient = scroll.get(DataComponentTypes.CUSTOM_NAME).getString(); UCriteria.SEND_DRAGON_BREATH.triggerSent(player, payload, recipient, (counterName, count) -> { if (count == 1 && "dings_on_celestias_head".equals(counterName)) { UnicopiaWorldProperties properties = UnicopiaWorldProperties.forWorld((ServerWorld)world);