From 618016247634d9a8e679113c122cd68947fd5cdd Mon Sep 17 00:00:00 2001 From: LCastr0 Date: Sat, 14 Jan 2017 02:05:36 -0200 Subject: [PATCH] Now only remove on teleport if its void --- .../src/mineplex/core/gadget/types/BalloonGadget.java | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/BalloonGadget.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/BalloonGadget.java index df8353192..4a5ad6f60 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/BalloonGadget.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/types/BalloonGadget.java @@ -118,14 +118,6 @@ public abstract class BalloonGadget extends Gadget balloonData.update(); } } - // Disables balloons for players who are near lava - /*for (Player player : players) - { - for (BalloonGadget balloonGadget : Manager.getActiveBalloons(player)) - { - balloonGadget.disable(player, false); - } - }*/ } private boolean canSpawnBalloon(Player player) @@ -157,6 +149,9 @@ public abstract class BalloonGadget extends Gadget { if (getBalloons(event.getPlayer()) > 0) { + if (event.getFrom().getY() > 0) + return; + for (BalloonGadget balloonGadget : Manager.getActiveBalloons(event.getPlayer())) { balloonGadget.disable(event.getPlayer(), false);