Now only remove on teleport if its void
This commit is contained in:
parent
704c787008
commit
6180162476
@ -118,14 +118,6 @@ public abstract class BalloonGadget extends Gadget
|
|||||||
balloonData.update();
|
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)
|
private boolean canSpawnBalloon(Player player)
|
||||||
@ -157,6 +149,9 @@ public abstract class BalloonGadget extends Gadget
|
|||||||
{
|
{
|
||||||
if (getBalloons(event.getPlayer()) > 0)
|
if (getBalloons(event.getPlayer()) > 0)
|
||||||
{
|
{
|
||||||
|
if (event.getFrom().getY() > 0)
|
||||||
|
return;
|
||||||
|
|
||||||
for (BalloonGadget balloonGadget : Manager.getActiveBalloons(event.getPlayer()))
|
for (BalloonGadget balloonGadget : Manager.getActiveBalloons(event.getPlayer()))
|
||||||
{
|
{
|
||||||
balloonGadget.disable(event.getPlayer(), false);
|
balloonGadget.disable(event.getPlayer(), false);
|
||||||
|
Loading…
Reference in New Issue
Block a user