mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-03 06:37:47 +01:00
Fixed NPC death error log
This commit is contained in:
parent
79cedee0d8
commit
39a5b5b965
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
||||
|
@ -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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user