mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-02-20 20:04:22 +01:00
Fix the dragon breath scroll
This commit is contained in:
parent
30cf83e860
commit
d5ee43abee
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@ public class DragonBreathScrollItem extends Item {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue