forked from Upstream/mmocore
Added yet another NPC check to prevent console spam from Sentinel.
This commit is contained in:
parent
49836a0f02
commit
4cc790907d
@ -28,7 +28,7 @@ public class KillMobExperienceSource extends SpecificExperienceSource<Entity> {
|
||||
|
||||
@EventHandler
|
||||
public void a(EntityKillEntityEvent event) {
|
||||
if (event.getEntity() instanceof Player) {
|
||||
if (event.getEntity() instanceof Player && !event.getEntity().hasMetadata("NPC")) {
|
||||
PlayerData data = PlayerData.get((Player) event.getEntity());
|
||||
|
||||
for (KillMobExperienceSource source : getSources())
|
||||
|
Loading…
Reference in New Issue
Block a user