mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
746f540e81
== AT == public net.minecraft.world.entity.projectile.FireworkRocketEntity attachedToEntity
15 lines
1,004 B
Diff
15 lines
1,004 B
Diff
--- a/net/minecraft/world/item/CrossbowItem.java
|
|
+++ b/net/minecraft/world/item/CrossbowItem.java
|
|
@@ -164,7 +164,11 @@
|
|
@Override
|
|
protected Projectile createProjectile(Level world, LivingEntity shooter, ItemStack weaponStack, ItemStack projectileStack, boolean critical) {
|
|
if (projectileStack.is(Items.FIREWORK_ROCKET)) {
|
|
- return new FireworkRocketEntity(world, projectileStack, shooter, shooter.getX(), shooter.getEyeY() - 0.15F, shooter.getZ(), true);
|
|
+ // Paper start
|
|
+ FireworkRocketEntity entity = new FireworkRocketEntity(world, projectileStack, shooter, shooter.getX(), shooter.getEyeY() - 0.15F, shooter.getZ(), true);
|
|
+ entity.spawningEntity = shooter.getUUID(); // Paper
|
|
+ return entity;
|
|
+ // Paper end
|
|
} else {
|
|
Projectile projectile = super.createProjectile(world, shooter, weaponStack, projectileStack, critical);
|
|
if (projectile instanceof AbstractArrow abstractArrow) {
|