From 1f0a22eb9424a8ef2783a10a511be7ee3e426792 Mon Sep 17 00:00:00 2001 From: LCastr0 Date: Sat, 8 Apr 2017 22:58:14 -0300 Subject: [PATCH] Stops balloons from 'growing up' --- .../mineplex/core/gadget/gadgets/balloons/BalloonItem.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/balloons/BalloonItem.java b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/balloons/BalloonItem.java index be3382dc6..8f4530c2b 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/balloons/BalloonItem.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/gadget/gadgets/balloons/BalloonItem.java @@ -58,6 +58,7 @@ public class BalloonItem extends BalloonGadget { Zombie zombie = player.getWorld().spawn(player.getLocation(), Zombie.class); zombie.setBaby(true); + ((Ageable) zombie).setAgeLock(true); UtilEnt.vegetate(zombie); UtilEnt.silence(zombie, true); addEntity(player, zombie); @@ -68,7 +69,10 @@ public class BalloonItem extends BalloonGadget Entity entity = player.getWorld().spawnEntity(player.getLocation(), _balloonType.getEntityType()); if (_balloonType.isBaby() && entity instanceof Ageable) + { ((Ageable) entity).setBaby(); + ((Ageable) entity).setAgeLock(true); + } UtilEnt.vegetate(entity); UtilEnt.silence(entity, true); addEntity(player, entity);