mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Fix Cast Crash
This commit is contained in:
1 parent
18eb9c5494
commit
8cf67e9ad2
1 file changed
+1
-1
@@ -84,7 +84,7 @@ public class PlayerDataScript implements INpcScriptHandler {
|
||||
scriptContainer.errored = false;
|
||||
}
|
||||
|
||||
if (!Objects.equals(hookName, EnumScriptType.INIT.function)) {
|
||||
if (!Objects.equals(hookName, EnumScriptType.INIT.function) && event instanceof noppes.npcs.scripted.event.PlayerEvent) {
|
||||
noppes.npcs.scripted.event.PlayerEvent playerEvent = (noppes.npcs.scripted.event.PlayerEvent) event;
|
||||
EventHooks.onPlayerInit(this, playerEvent.player);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user