summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2018-08-20 18:13:45 +1000
committermd_5 <git@md-5.net>2018-08-21 18:21:11 +1000
commit89492315d1b0f6e4c66f0bedb146ab5ea5626e24 (patch)
treefbe2dd55e7b9d04cdd13477a7daf1292d9f85b47 /src
parent82f4b3b1d97e08fb649a5e461aa98e335021fe26 (diff)
downloadcraftbukkit-89492315d1b0f6e4c66f0bedb146ab5ea5626e24.tar
craftbukkit-89492315d1b0f6e4c66f0bedb146ab5ea5626e24.tar.gz
craftbukkit-89492315d1b0f6e4c66f0bedb146ab5ea5626e24.tar.lz
craftbukkit-89492315d1b0f6e4c66f0bedb146ab5ea5626e24.tar.xz
craftbukkit-89492315d1b0f6e4c66f0bedb146ab5ea5626e24.zip
launchProjectile Fish -> FishHook
Thanks Senmori & SpoonFed on IRC
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
index 0a3733b2..f726e709 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
@@ -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();