g
This commit is contained in:
parent
7f6c97fde9
commit
a18a12243b
1 changed files with 1 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue