This commit is contained in:
Minecon724 2022-01-29 14:26:44 +01:00
parent 7f6c97fde9
commit a18a12243b
1 changed files with 1 additions and 2 deletions

View File

@ -75,8 +75,7 @@ public class Main extends JavaPlugin implements Listener {
Entity spawnGiant(boolean ai, Location pos) {
LivingEntity entity = (LivingEntity) pos.getWorld().spawnEntity(pos, EntityType.GIANT);
if (ai) {
//entity.addPassenger(pos.getWorld().spawnEntity(pos, EntityType.HUSK));
entity.setAI(true);
entity.addPassenger(pos.getWorld().spawnEntity(pos, EntityType.HUSK));
}
for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
PotionEffect effect = new PotionEffect(t.getKey(), Integer.MAX_VALUE, t.getValue());