Fix for ClassCastException

This commit is contained in:
Blake Bartenbach 2012-07-21 06:46:50 -05:00
parent ac1c420cb5
commit 548ff29689

View File

@ -191,6 +191,10 @@ public class Fishing {
* @param event The event to modify * @param event The event to modify
*/ */
public static void shakeMob(PlayerFishEvent event) { public static void shakeMob(PlayerFishEvent event) {
if (!(event.getCaught() instanceof LivingEntity)) {
return;
}
int randomChance = 100; int randomChance = 100;
if (event.getPlayer().hasPermission("mcmmo.perks.lucky.fishing")) { if (event.getPlayer().hasPermission("mcmmo.perks.lucky.fishing")) {