Fixed NPC death error log

This commit is contained in:
Jules 2022-03-22 19:45:50 +01:00
parent 79cedee0d8
commit 39a5b5b965
2 changed files with 4 additions and 1 deletions

View File

@ -160,7 +160,7 @@
<dependency>
<groupId>io.lumine</groupId>
<artifactId>MythicLib-dist</artifactId>
<version>1.4</version>
<version>1.3.1</version>
<scope>provided</scope>
</dependency>

View File

@ -63,6 +63,9 @@ public class PlayerListener implements Listener {
// No
if (event instanceof Cancellable) { if (((Cancellable) event).isCancelled()) { return; } }
// Supports NPCs
if (!PlayerData.has(event.getEntity())) return;
// Get Player
PlayerData data = PlayerData.get(event.getEntity());