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) {
|
Entity spawnGiant(boolean ai, Location pos) {
|
||||||
LivingEntity entity = (LivingEntity) pos.getWorld().spawnEntity(pos, EntityType.GIANT);
|
LivingEntity entity = (LivingEntity) pos.getWorld().spawnEntity(pos, EntityType.GIANT);
|
||||||
if (ai) {
|
if (ai) {
|
||||||
//entity.addPassenger(pos.getWorld().spawnEntity(pos, EntityType.HUSK));
|
entity.addPassenger(pos.getWorld().spawnEntity(pos, EntityType.HUSK));
|
||||||
entity.setAI(true);
|
|
||||||
}
|
}
|
||||||
for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
|
for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
|
||||||
PotionEffect effect = new PotionEffect(t.getKey(), Integer.MAX_VALUE, t.getValue());
|
PotionEffect effect = new PotionEffect(t.getKey(), Integer.MAX_VALUE, t.getValue());
|
||||||
|
|
Loading…
Reference in a new issue