EnvyWare / BetterPokeBroadcaster

MIT License
2 stars 7 forks source link

Receiving NPE when legendary pokemon spawn. #2

Closed witchyface closed 2 years ago

witchyface commented 2 years ago

Hi Daniel,

Latest version of BetterPokeBroadcaster is throwing a NullPointer Exception when a legendary spawns. This is when using the 'legendary', 'legend' or 'islegendary' specs.

It worked for 1x time, and since then has been throwing this NPE.

[08:58:47] [Server thread/INFO] [minecraft/ServerPlayNetHandler]: UseRainDance issued server command: /dolegendaryspawn UseRainDance
[08:58:47] [envyware_concurrency_1/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]: java.lang.NullPointerException
[08:58:47] [Server thread/INFO] [minecraft/DedicatedServer]: [Pixelmon] Keldeo has spawned in a River biome!
[08:58:47] [envyware_concurrency_1/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at com.envyful.better.poke.broadcaster.listener.PokeSpawnListener.lambda$onPixelmonSpawn$0(PokeSpawnListener.java:54)
[08:58:47] [envyware_concurrency_1/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
[08:58:47] [Server thread/INFO] [minecraft/DedicatedServer]: Spawned Keldeo at: ServerChunkCache: 4050 x:-7815, y:63, z:8680
[08:58:47] [envyware_concurrency_1/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
[08:58:47] [envyware_concurrency_1/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1050]:     at java.base/java.lang.Thread.run(Thread.java:829)
danorris709 commented 2 years ago

Fixed for next version