Chunky Border (Fabric)

Chunky Border (Fabric)

476k Downloads

Disabling effect and sound no longer works on 1.21.8

Closed this issue ยท 3 comments

commented

In the past, at least in ChunkyBorder V1.1.61 on Paper 1.20.4, it was possible to disable effect and sound border-options by setting their values to '' (empty string).

Now, in latest version of CB and Paper, with same CB configuration, I'm getting a huge amount of these exceptions in the server log when any player crosses a world border (and it doesn't prevent player from crossing the border and moving on):

[22:09:28] [ChunkyBorder] Global task for ChunkyBorder v1.2.23 generated an exception
java.lang.NullPointerException: Cannot invoke "org.bukkit.NamespacedKey.getNamespace()" because "key" is null
        at org.bukkit.craftbukkit.util.CraftNamespacedKey.toMinecraft(CraftNamespacedKey.java:22) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at io.papermc.paper.util.MCUtil.toResourceKey(MCUtil.java:199) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at org.bukkit.craftbukkit.CraftRegistry.get(CraftRegistry.java:199) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at org.bukkit.craftbukkit.CraftRegistry.get(CraftRegistry.java:132) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at org.bukkit.craftbukkit.util.CraftMagicNumbers.get(CraftMagicNumbers.java:479) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at org.bukkit.Sound.valueOf(Sound.java:3498) ~[paper-api-1.21.8-R0.1-SNAPSHOT.jar:?]
        at Chunky-Bukkit-1.4.40.jar/org.popcraft.chunky.platform.BukkitWorld.playSound(BukkitWorld.java:180) ~[Chunky-Bukkit-1.4.40.jar:?]
        at ChunkyBorder-Bukkit-1.2.23.jar/org.popcraft.chunkyborder.BorderCheckTask.lambda$run$0(BorderCheckTask.java:46) ~[ChunkyBorder-Bukkit-1.2.23.jar:?]
        at java.base/java.util.Optional.ifPresent(Optional.java:178) ~[?:?]
        at ChunkyBorder-Bukkit-1.2.23.jar/org.popcraft.chunkyborder.BorderCheckTask.run(BorderCheckTask.java:29) ~[ChunkyBorder-Bukkit-1.2.23.jar:?]
        at Chunky-Bukkit-1.4.40.jar/org.popcraft.chunky.platform.Folia.lambda$scheduleFixedGlobal$2(Folia.java:35) ~[Chunky-Bukkit-1.4.40.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler$GlobalScheduledTask.run(FoliaGlobalRegionScheduler.java:179) ~[paper-1.21.8.jar:?]
        at io.papermc.paper.threadedregions.scheduler.FoliaGlobalRegionScheduler.tick(FoliaGlobalRegionScheduler.java:37) ~[paper-1.21.8.jar:?]
        at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1665) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1531) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1253) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at net.minecraft.server.MinecraftServer.lambda$spin$2(MinecraftServer.java:310) ~[paper-1.21.8.jar:1.21.8-53-704107c]
        at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]

So, how to disable effect & sound now?...

commented

Interesting, so this happened between updates? I guess the API broke here and no longer allows empty values.

I'll look at fixing this soon when I can. Thanks for reporting!

commented

Thank you this should be fixed by 702c7b0. Grab the latest dev build on CodeMC or Github Actions for now.

commented

Thanks!