small fix
This commit is contained in:
parent
f4daa14bd5
commit
5cdd686db9
1 changed files with 3 additions and 3 deletions
|
@ -84,7 +84,7 @@ public class Main extends JavaPlugin implements Listener {
|
|||
}
|
||||
}
|
||||
}
|
||||
}.runTaskTimer(this, config.getLong("hitDelay"), 0L);
|
||||
}; //.runTaskTimer(this, config.getLong("hitDelay"), 0L);
|
||||
new BukkitRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
@ -113,11 +113,11 @@ 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 passenger = pos.getWorld().spawnEntity(pos, EntityType.HUSK);
|
||||
LivingEntity passenger = (LivingEntity) pos.getWorld().spawnEntity(pos, EntityType.HUSK);
|
||||
new PotionEffect(PotionEffectType.INVISIBILITY, Integer.MAX_VALUE, 1).apply((LivingEntity) passenger);
|
||||
passenger.setInvulnerable(true);
|
||||
passenger.setCustomName("Giant");
|
||||
passenger.setCustomNameVisible(false);
|
||||
passenger.setHealth(0.5D);
|
||||
entity.addPassenger(passenger);
|
||||
}
|
||||
for (Entry<PotionEffectType, Integer> t : effects.entrySet()) {
|
||||
|
|
Loading…
Reference in a new issue