|
@@ -104,7 +104,7 @@ public class FishingManager extends SkillManager {
|
|
vehicle.remove();
|
|
vehicle.remove();
|
|
}
|
|
}
|
|
|
|
|
|
- player.teleport(player.getTargetBlock((HashSet<Byte>) null, 100).getLocation(), TeleportCause.PLUGIN);
|
|
|
|
|
|
+ player.teleport(player.getTargetBlock((HashSet<Material>) null, 100).getLocation(), TeleportCause.PLUGIN);
|
|
|
|
|
|
String unleashMessage = AdvancedConfig.getInstance().getPlayerUnleashMessage();
|
|
String unleashMessage = AdvancedConfig.getInstance().getPlayerUnleashMessage();
|
|
|
|
|
|
@@ -167,7 +167,7 @@ public class FishingManager extends SkillManager {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- Block targetBlock = getPlayer().getTargetBlock((HashSet<Byte>) BlockUtils.getTransparentBlocks(), 100);
|
|
|
|
|
|
+ Block targetBlock = getPlayer().getTargetBlock((HashSet<Material>) BlockUtils.getTransparentBlocks(), 100);
|
|
|
|
|
|
if (!targetBlock.isLiquid()) {
|
|
if (!targetBlock.isLiquid()) {
|
|
return false;
|
|
return false;
|