mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
leave vehicles
This commit is contained in:
@@ -26,11 +26,16 @@ public class BleezeAI {
|
||||
Bukkit.getScheduler().runTaskTimer(Finale.getPlugin(), () -> {
|
||||
for (ActiveMob mob : MythicBukkit.inst().getMobManager().getActiveMobs()) {
|
||||
if (!mob.getType().getInternalName().equals("Bleeze")) {
|
||||
if (mob.getType().getInternalName().equals("BleezeMinion")) {
|
||||
mob.getEntity().getBukkitEntity().leaveVehicle();
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Mob entity = (Mob) mob.getEntity().getBukkitEntity();
|
||||
|
||||
entity.leaveVehicle();
|
||||
|
||||
if (entity.getWorld().getWeatherDuration() > 1) {
|
||||
// entity.remove();
|
||||
// continue;
|
||||
|
||||
Reference in New Issue
Block a user