Now only remove on teleport if its void

This commit is contained in:
LCastr0 2017-01-14 02:05:36 -02:00 committed by cnr
parent 704c787008
commit 6180162476

View File

@ -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);