gonalez / znpcs

New version of znpcs plugin. A spigot/bukkit plugin to create npcs
https://www.spigotmc.org/resources/znpcs.80940
Apache License 2.0
51 stars 25 forks source link

NPC glow doesn't work on 1.19 #42

Open JakeMorton26 opened 2 years ago

JakeMorton26 commented 2 years ago

When you toggle the npc to glow, the npc goes invisible and this is spammed in the console:

! [Tue 13:50:35 WARN  ServersNPC] Plugin ServersNPC v3.7 generated an exception while executing task 11
java.lang.AssertionError: can't invoke method: updateScoreboard
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.packet.PacketCache.lambda$getOrCache$0(PacketCache.java:103)
    at java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1708)
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.packet.PacketCache.getOrCache(PacketCache.java:97)
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.packet.PacketCache.access$000(PacketCache.java:21)
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.packet.PacketCache$PacketHandler.invoke(PacketCache.java:156)
    at znpc-servers.jar/jdk.proxy7/jdk.proxy7.$Proxy69.updateScoreboard(Unknown Source)
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.NPC.spawn(NPC.java:309)
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.task.NPCManagerTask.run(NPCManagerTask.java:41)
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101)
    at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57)
    at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
    at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.reflect.InvocationTargetException
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:568)
    at znpc-servers.jar//io.github.znetworkw.znpcservers.npc.pac
Scralar commented 1 year ago

bump, I have the exact same issue