forked from LogBlock/LogBlock
Explosion logging: Move WitherSkull up, because it is a Fireball too
This commit is contained in:
@ -67,13 +67,25 @@ public class ExplosionLogging extends LoggingListener {
|
|||||||
} else {
|
} else {
|
||||||
actor = new Actor("Creeper");
|
actor = new Actor("Creeper");
|
||||||
}
|
}
|
||||||
|
} else if (source instanceof Wither) {
|
||||||
|
if (!wcfg.isLogging(Logging.WITHER)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
actor = Actor.actorFromEntity(source);
|
||||||
|
} else if (source instanceof WitherSkull) {
|
||||||
|
if (!wcfg.isLogging(Logging.WITHER_SKULL)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
actor = Actor.actorFromEntity(source);
|
||||||
} else if (source instanceof Fireball) {
|
} else if (source instanceof Fireball) {
|
||||||
Fireball fireball = (Fireball) source;
|
Fireball fireball = (Fireball) source;
|
||||||
ProjectileSource shooter = fireball.getShooter();
|
ProjectileSource shooter = fireball.getShooter();
|
||||||
if (shooter == null) {
|
if (shooter == null) {
|
||||||
return;
|
if (!wcfg.isLogging(Logging.MISCEXPLOSION)) {
|
||||||
}
|
return;
|
||||||
if (shooter instanceof Ghast) {
|
}
|
||||||
|
actor = Actor.actorFromEntity(source);
|
||||||
|
} else if (shooter instanceof Ghast) {
|
||||||
if (!wcfg.isLogging(Logging.GHASTFIREBALLEXPLOSION)) {
|
if (!wcfg.isLogging(Logging.GHASTFIREBALLEXPLOSION)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -89,17 +101,6 @@ public class ExplosionLogging extends LoggingListener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
actor = Actor.actorFromEntity(source);
|
actor = Actor.actorFromEntity(source);
|
||||||
} else if (source instanceof Wither) {
|
|
||||||
if (!wcfg.isLogging(Logging.WITHER)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
actor = Actor.actorFromEntity(source);
|
|
||||||
} else if (source instanceof WitherSkull) {
|
|
||||||
if (!wcfg.isLogging(Logging.WITHER_SKULL)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
actor = Actor.actorFromEntity(source);
|
|
||||||
|
|
||||||
} else if (source instanceof EnderCrystal) {
|
} else if (source instanceof EnderCrystal) {
|
||||||
if (!wcfg.isLogging(Logging.ENDERCRYSTALEXPLOSION)) {
|
if (!wcfg.isLogging(Logging.ENDERCRYSTALEXPLOSION)) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user