Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 21:10:17 +01:00
SPIGOT-1683: Arrows are not projectiles
Dieser Commit ist enthalten in:
Ursprung
e2c5473e07
Commit
23ad72b4c8
@ -9,6 +9,7 @@ import java.util.Set;
|
|||||||
|
|
||||||
import net.minecraft.server.DamageSource;
|
import net.minecraft.server.DamageSource;
|
||||||
import net.minecraft.server.EntityArmorStand;
|
import net.minecraft.server.EntityArmorStand;
|
||||||
|
import net.minecraft.server.EntityArrow;
|
||||||
import net.minecraft.server.EntityDragonFireball;
|
import net.minecraft.server.EntityDragonFireball;
|
||||||
import net.minecraft.server.EntityEgg;
|
import net.minecraft.server.EntityEgg;
|
||||||
import net.minecraft.server.EntityEnderPearl;
|
import net.minecraft.server.EntityEnderPearl;
|
||||||
@ -337,7 +338,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||||||
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 1.5F, 1.0F); // ItemEnderPearl
|
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 1.5F, 1.0F); // ItemEnderPearl
|
||||||
} else if (Arrow.class.isAssignableFrom(projectile)) {
|
} else if (Arrow.class.isAssignableFrom(projectile)) {
|
||||||
launch = new EntityTippedArrow(world, getHandle());
|
launch = new EntityTippedArrow(world, getHandle());
|
||||||
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 3.0F, 1.0F); // ItemBow
|
((EntityArrow) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 3.0F, 1.0F); // ItemBow
|
||||||
} else if (ThrownPotion.class.isAssignableFrom(projectile)) {
|
} else if (ThrownPotion.class.isAssignableFrom(projectile)) {
|
||||||
launch = new EntityPotion(world, getHandle(), CraftItemStack.asNMSCopy(new ItemStack(Material.POTION, 1)));
|
launch = new EntityPotion(world, getHandle(), CraftItemStack.asNMSCopy(new ItemStack(Material.POTION, 1)));
|
||||||
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, -20.0F, 0.5F, 1.0F); // ItemSplashPotion
|
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, -20.0F, 0.5F, 1.0F); // ItemSplashPotion
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren