Tick dragons when far away to prevent them getting stuck

This commit is contained in:
Sam 2018-07-14 14:32:57 +01:00 committed by Alexander Meech
parent 20338c5a63
commit e20cae8be9

View File

@ -149,6 +149,7 @@ public class Dragons extends SoloGame
EnderDragon dragon = location.getWorld().spawn(location, EnderDragon.class);
UtilEnt.vegetate(dragon);
UtilEnt.ghost(dragon, true, false);
UtilEnt.setTickWhenFarAway(dragon, true);
location.getWorld().playSound(location, Sound.ENDERDRAGON_GROWL, 20f, 1f);