BlockPopulators causing ticking entity error / server crash

    • Type: Bug
    • Resolution: Invalid
    • Priority: Minor
    • None
    • Affects Version/s: None
    • Environment:

      Spigot specs:

      • Version 1.21.4

      Frontier specs:

      • Using org.spigotmc.spigot-api version 1.21.4-RO.1-SNAPSHOT
      • Using Java 22
    • 1.21.4
    • Frontier
    • Yes

      When using a BlockPopulator that copies chunks from another world, my plugin causes a crash due to a ticking entity. I am not sure why this ticking entity issue is being caused by this functionality, but it persists nonetheless. A paste of the relevant code in the plugin and a crash report can be found below, and the plugin jar will be attached as well. The for loop on lines 43-46 of the code paste were added before this issue began.

      When the server loads, everything is fine, but when I join the world whose BlockPopulators I am adding to and I start generating chunks by flying around, this issue occurs, seemingly from one of the newly generated chunks containing the ticking entity.

      Crash report: https://paste.md-5.net/ujalefobex.bash

      Relevant code: https://paste.md-5.net/ohagiyumib.cs

            Assignee:
            Unassigned
            Reporter:
            Lucas Eastman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: