Added yet another NPC check to prevent console spam from Sentinel.

This commit is contained in:
Aria 2019-10-03 21:57:48 +02:00
parent 49836a0f02
commit 4cc790907d

View File

@ -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())