Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4137

Cannot regenerate chunks using the built in regenerateChunk method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • None
    • This server is running CraftBukkit version git-Spigot-0b44fa0-4 9a2604 (MC: 1.13) (Implementing API version 1.13-R0.1-SNAPSHOT)
    • plotsquared, worldedit, uskyblock, askyblock, bskyblock, and my own plugins

      This is a very annoying issue that has been going for a while now, it's messing up many plugins because World#regenerateChunk doesn't work and has this stack-trace in console.

      I am able to reproduce this issue on a clean test server with freshly generated worlds as well.

      The following is an example stack-trace, the error can be reproduced by any plugin on any world on the server.

      java.lang.RuntimeException: Error while adding chunk to cache. Too many neighborsjava.lang.RuntimeException: Error while adding chunk to cache. Too many neighbors at net.minecraft.server.v1_13_R1.Chunk.H(Chunk.java:1228) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.ChunkMap.a(ChunkMap.java:27) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.ChunkMap.put(ChunkMap.java:134) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.ChunkMap.put(ChunkMap.java:1) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at org.bukkit.craftbukkit.libs.it.unimi.dsi.fastutil.longs.Long2ObjectMaps$SynchronizedMap.put(Long2ObjectMaps.java:371) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at org.bukkit.craftbukkit.v1_13_R1.CraftWorld.regenerateChunk(CraftWorld.java:230) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at com.plotsquared.bukkit.util.block.BukkitLocalQueue.regenChunk(BukkitLocalQueue.java:61) ~[?:?] at com.intellectualcrafters.plot.generator.HybridPlotManager$1.run(HybridPlotManager.java:169) ~[?:?] at com.intellectualcrafters.plot.generator.HybridPlotManager$1.run(HybridPlotManager.java:164) ~[?:?] at com.intellectualcrafters.plot.object.RunnableVal.run(RunnableVal.java:14) ~[?:?] at com.intellectualcrafters.plot.util.ChunkManager$3.run(ChunkManager.java:182) ~[?:?] at org.bukkit.craftbukkit.v1_13_R1.scheduler.CraftTask.run(CraftTask.java:76) ~[spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at org.bukkit.craftbukkit.v1_13_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:361) [spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.MinecraftServer.w(MinecraftServer.java:877) [spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.DedicatedServer.w(DedicatedServer.java:411) [spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.MinecraftServer.v(MinecraftServer.java:819) [spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at net.minecraft.server.v1_13_R1.MinecraftServer.run(MinecraftServer.java:717) [spigot-1.13.jar:git-Spigot-0b44fa0-2100017] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_171]

      Minimal reproduction code attached as a plugin file.

      To reproduce the issue, create a brand new test server with no plugins other then this plugin with fresh worlds etc. and type /regen in-game and it will attempt to regenerate the chunk you are standing in.

            Unassigned Unassigned
            Speentie8081 Devon Casper
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: