mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Casting Fix
This commit is contained in:
1 parent
a43a4409a3
commit
777283e5aa
1 file changed
+1
-1
@@ -410,7 +410,7 @@ public class ScriptPlayerEventHandler {
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
|
||||
if(source instanceof EntityPlayer) {
|
||||
if(event.source.getEntity() instanceof EntityPlayer) {
|
||||
IPlayer scriptPlayer = (IPlayer) NpcAPI.Instance().getIEntity(event.source.getEntity());
|
||||
EventHooks.onPlayerKills(handler,scriptPlayer, event.entityLiving);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user