Skip to content

Commit bcb698b

Browse files
Update paper-server/patches/sources/net/minecraft/world/item/FireworkRocketItem.java.patch
Co-authored-by: Nassim Jahnke <nassim@njahnke.dev>
1 parent 3166311 commit bcb698b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paper-server/patches/sources/net/minecraft/world/item/FireworkRocketItem.java.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
+ com.destroystokyo.paper.event.player.PlayerElytraBoostEvent event = new com.destroystokyo.paper.event.player.PlayerElytraBoostEvent((org.bukkit.entity.Player) player.getBukkitEntity(), org.bukkit.craftbukkit.inventory.CraftItemStack.asCraftMirror(itemInHand), (org.bukkit.entity.Firework) delayed.projectile().getBukkitEntity(), org.bukkit.craftbukkit.CraftEquipmentSlot.getHand(hand));
3838
+ if (event.callEvent() && delayed.attemptSpawn()) {
3939
+ player.awardStat(Stats.ITEM_USED.get(this)); // Moved up from below
40-
+ if (player.dropAllLeashConnections(player, hand)) { // Paper - must pass in player and hand for PlayerUnleashEntityEvent to fire
40+
+ if (player.dropAllLeashConnections(player, hand)) { // Paper - PlayerUnleashEntityEvent
4141
+ level.playSound(null, player, SoundEvents.LEAD_BREAK, SoundSource.NEUTRAL, 1.0F, 1.0F);
4242
+ }
4343
+ if (event.shouldConsume() && !player.hasInfiniteMaterials()) {

0 commit comments

Comments
 (0)