mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-01-05 06:57:35 +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>
|
<dependency>
|
||||||
<groupId>io.lumine</groupId>
|
<groupId>io.lumine</groupId>
|
||||||
<artifactId>MythicLib-dist</artifactId>
|
<artifactId>MythicLib-dist</artifactId>
|
||||||
<version>1.4</version>
|
<version>1.3.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
@ -63,6 +63,9 @@ public class PlayerListener implements Listener {
|
|||||||
// No
|
// No
|
||||||
if (event instanceof Cancellable) { if (((Cancellable) event).isCancelled()) { return; } }
|
if (event instanceof Cancellable) { if (((Cancellable) event).isCancelled()) { return; } }
|
||||||
|
|
||||||
|
// Supports NPCs
|
||||||
|
if (!PlayerData.has(event.getEntity())) return;
|
||||||
|
|
||||||
// Get Player
|
// Get Player
|
||||||
PlayerData data = PlayerData.get(event.getEntity());
|
PlayerData data = PlayerData.get(event.getEntity());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user