Attempted fix for CombatTag dupe glitch - don't apply AoE damage to

NPCs.
This commit is contained in:
gmcferrin 2013-01-10 12:18:08 -05:00
parent 621f739831
commit ec6b9d4387

View File

@ -335,6 +335,12 @@ public class Combat {
} }
for (Entity entity : target.getNearbyEntities(2.5, 2.5, 2.5)) { for (Entity entity : target.getNearbyEntities(2.5, 2.5, 2.5)) {
if (entity instanceof Player) {
if (Misc.isCitizensNPC((Player) entity)) {
continue;
}
}
if (!(entity instanceof LivingEntity)) { if (!(entity instanceof LivingEntity)) {
continue; continue;
} }