mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
launchProjectile Fish -> FishHook
Thanks Senmori & SpoonFed on IRC
This commit is contained in:
parent
82f4b3b1d9
commit
89492315d1
1 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ import org.bukkit.entity.EnderPearl;
|
|||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.EntityType;
|
||||
import org.bukkit.entity.Fireball;
|
||||
import org.bukkit.entity.Fish;
|
||||
import org.bukkit.entity.FishHook;
|
||||
import org.bukkit.entity.HumanEntity;
|
||||
import org.bukkit.entity.LingeringPotion;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
|
@ -335,7 +335,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||
} else if (ThrownExpBottle.class.isAssignableFrom(projectile)) {
|
||||
launch = new EntityThrownExpBottle(world, getHandle());
|
||||
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, -20.0F, 0.7F, 1.0F); // ItemExpBottle
|
||||
} else if (Fish.class.isAssignableFrom(projectile) && getHandle() instanceof EntityHuman) {
|
||||
} else if (FishHook.class.isAssignableFrom(projectile) && getHandle() instanceof EntityHuman) {
|
||||
launch = new EntityFishingHook(world, (EntityHuman) getHandle());
|
||||
} else if (Fireball.class.isAssignableFrom(projectile)) {
|
||||
Location location = getEyeLocation();
|
||||
|
|
Loading…
Reference in a new issue