mdaffa48 / SSB2-AdvancedSlimeWorldManager

Advanced-SlimeWorldManager add-on for SuperiorSkyblock2
4 stars 5 forks source link

unload bug with ASWM on 1.18.2 #6

Open BingYanchi opened 2 years ago

BingYanchi commented 2 years ago

It seems that the latest ASWM removed CraftSlimeWorld, maybe it changed other methods. The island doesn't save properly, the server restarts thinking I don't have an island and asks me to create it again.

[22:59:46] [Server thread/INFO]: [SuperiorSkyblock-ASWM] Disabling SuperiorSkyblock-ASWM v1.0.4
[22:59:46] [Server thread/ERROR]: Error occurred while disabling SuperiorSkyblock-ASWM v1.0.4 (Is it up to date?)
java.lang.NoClassDefFoundError: com/grinderwolf/swm/nms/CraftSlimeWorld
    at me.aglerr.ssbslimeworldmanager.utils.SlimeUtils.unloadWorld(SlimeUtils.java:109) ~[SuperiorSkyblock-ASWM-v1.0.4.jar:?]
    at me.aglerr.ssbslimeworldmanager.utils.SlimeUtils.lambda$unloadAllWorlds$0(SlimeUtils.java:39) ~[SuperiorSkyblock-ASWM-v1.0.4.jar:?]
    at java.util.HashMap$KeySet.forEach(HashMap.java:1008) ~[?:?]
    at me.aglerr.ssbslimeworldmanager.utils.SlimeUtils.unloadAllWorlds(SlimeUtils.java:37) ~[SuperiorSkyblock-ASWM-v1.0.4.jar:?]
    at me.aglerr.ssbslimeworldmanager.SSBSlimeWorldManager.onDisable(SSBSlimeWorldManager.java:30) ~[SuperiorSkyblock-ASWM-v1.0.4.jar:?]
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:266) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.java.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:399) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.SimplePluginManager.disablePlugin(SimplePluginManager.java:578) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.SimplePluginManager.disablePlugins(SimplePluginManager.java:555) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.craftbukkit.v1_18_R2.CraftServer.disablePlugins(CraftServer.java:494) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:972) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:803) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1271) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-386]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.ClassNotFoundException: com.grinderwolf.swm.nms.CraftSlimeWorld
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:151) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    ... 15 more

[22:59:47] [Server thread/ERROR]: Failed to save chunk [0, 0]
java.util.concurrent.CompletionException: java.lang.IllegalStateException: zip file closed
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[?:?]
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[?:?]
    at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:722) ~[?:?]
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
    at net.minecraft.server.level.ChunkMap.processUnloads(ChunkMap.java:1026) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.level.ChunkMap.tick(ChunkMap.java:994) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.level.ServerChunkCache.tick(ServerChunkCache.java:913) ~[?:?]
    at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:1016) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.dedicated.DedicatedServer.stopServer(DedicatedServer.java:803) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1271) ~[paper-1.18.2.jar:git-Paper-386]
    at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:316) ~[paper-1.18.2.jar:git-Paper-386]
    at java.lang.Thread.run(Thread.java:833) ~[?:?]
Caused by: java.lang.IllegalStateException: zip file closed
    at java.util.zip.ZipFile.ensureOpen(ZipFile.java:831) ~[?:?]
    at java.util.zip.ZipFile.getEntry(ZipFile.java:330) ~[?:?]
    at java.util.jar.JarFile.getEntry(JarFile.java:518) ~[?:?]
    at java.util.jar.JarFile.getJarEntry(JarFile.java:473) ~[?:?]
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:163) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:587) ~[?:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass0(PluginClassLoader.java:108) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at org.bukkit.plugin.java.PluginClassLoader.loadClass(PluginClassLoader.java:103) ~[paper-api-1.18.2-R0.1-SNAPSHOT.jar:?]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:520) ~[?:?]
    at com.grinderwolf.swm.nms.v1182.CustomWorldServer.convertChunk(CustomWorldServer.java:186) ~[slimeworldmanager-plugin-2.8.0-SNAPSHOT.jar:?]
    at com.grinderwolf.swm.nms.v1182.CustomWorldServer.a(CustomWorldServer.java:378) ~[slimeworldmanager-plugin-2.8.0-SNAPSHOT.jar:?]
    at net.minecraft.server.level.ChunkMap.lambda$scheduleUnload$25(ChunkMap.java:1073) ~[paper-1.18.2.jar:git-Paper-386]
    at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:718) ~[?:?]
    ... 9 more