mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
The Kraken hates boats.
This commit is contained in:
parent
0033c8864e
commit
5c4c3cf59c
@ -74,6 +74,14 @@ public class FishingManager extends SkillManager {
|
|||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
|
|
||||||
player.setPlayerWeather(WeatherType.DOWNFALL);
|
player.setPlayerWeather(WeatherType.DOWNFALL);
|
||||||
|
|
||||||
|
Entity vehicle = player.getVehicle();
|
||||||
|
|
||||||
|
if (vehicle != null && vehicle.getType() == EntityType.BOAT) {
|
||||||
|
vehicle.eject();
|
||||||
|
vehicle.remove();
|
||||||
|
}
|
||||||
|
|
||||||
player.teleport(player.getTargetBlock(null, 100).getLocation(), TeleportCause.PLUGIN);
|
player.teleport(player.getTargetBlock(null, 100).getLocation(), TeleportCause.PLUGIN);
|
||||||
|
|
||||||
Location location = player.getLocation();
|
Location location = player.getLocation();
|
||||||
@ -91,6 +99,8 @@ public class FishingManager extends SkillManager {
|
|||||||
kraken.setHealth(kraken.getMaxHealth());
|
kraken.setHealth(kraken.getMaxHealth());
|
||||||
player.setItemInHand(null);
|
player.setItemInHand(null);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
new KrakenAttackTask(kraken, player).runTaskTimer(mcMMO.p, 20L, 20L);
|
new KrakenAttackTask(kraken, player).runTaskTimer(mcMMO.p, 20L, 20L);
|
||||||
fishingTries = 1;
|
fishingTries = 1;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user