Skip to content

Commit

Permalink
Fix the dragon breath scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Dec 19, 2024
1 parent 30cf83e commit d5ee43a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ public TypedActionResult<ItemStack> 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);
Expand Down

0 comments on commit d5ee43a

Please sign in to comment.