From 5378ece214c04188d3eea8d5508495394b0b576c Mon Sep 17 00:00:00 2001 From: Mysticate Date: Tue, 6 Oct 2015 21:09:53 -0400 Subject: [PATCH] Fixed chicken being able to fly.. --- .../game/arcade/game/games/evolution/Evolution.java | 1 - .../game/games/evolution/mobs/perks/PerkDoubleJumpEVO.java | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java index 10affd8e8..39ceda806 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/Evolution.java @@ -25,7 +25,6 @@ import mineplex.core.recharge.Recharge; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.minecraft.game.core.combat.CombatComponent; -import mineplex.minecraft.game.core.combat.DeathMessageType; import mineplex.minecraft.game.core.combat.CombatManager.AttackReason; import mineplex.minecraft.game.core.combat.DeathMessageType; import mineplex.minecraft.game.core.combat.event.CombatDeathEvent; diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/mobs/perks/PerkDoubleJumpEVO.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/mobs/perks/PerkDoubleJumpEVO.java index 11978b075..bc457ab77 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/mobs/perks/PerkDoubleJumpEVO.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/evolution/mobs/perks/PerkDoubleJumpEVO.java @@ -65,6 +65,9 @@ public class PerkDoubleJumpEVO extends Perk if (player.getGameMode() == GameMode.CREATIVE) return; + + event.setCancelled(true); + player.setFlying(false); EvolutionAbilityUseEvent useEvent = new EvolutionAbilityUseEvent(player, GetName(), 0); Bukkit.getServer().getPluginManager().callEvent(useEvent); @@ -72,9 +75,6 @@ public class PerkDoubleJumpEVO extends Perk if (useEvent.isCancelled()) return; - event.setCancelled(true); - player.setFlying(false); - //Disable Flight player.setAllowFlight(false);