Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChunkLoadEvent and ChunkUnloadEvent never fire #11103

Closed
joshuaprince opened this issue Jul 18, 2024 · 2 comments · Fixed by #11104
Closed

ChunkLoadEvent and ChunkUnloadEvent never fire #11103

joshuaprince opened this issue Jul 18, 2024 · 2 comments · Fixed by #11104
Labels
type: bug Something doesn't work as it was intended to.

Comments

@joshuaprince
Copy link

Expected behavior

ChunkLoadEvent and ChunkUnloadEvent should fire regularly as chunks load and unload.

Observed/Actual behavior

Starting in Paper 1.21 build 84 (Moonrise changes), ChunkLoadEvent and ChunkUnloadEvent do not fire at all.

Steps/models to reproduce

Test plugin:

    @EventHandler
    public void onChunkLoad(ChunkLoadEvent event) {
        // Does not fire
        getLogger().info("Chunk load " + event.getChunk().getX() + " " + event.getChunk().getZ());
    }

    @EventHandler
    public void onChunkUnLoad(ChunkUnloadEvent event) {
        // Does not fire
        getLogger().info("Chunk UNload " + event.getChunk().getX() + " " + event.getChunk().getZ());
    }

    @EventHandler
    public void onChunkLoadPlayer(PlayerChunkLoadEvent event) {
        // Works as expected
        getLogger().info("Chunk load PLAYER " + event.getChunk().getX() + " " + event.getChunk().getZ());
    }

    @EventHandler
    public void onChunkUnLoadPlayer(PlayerChunkUnloadEvent event) {
        // Works as expected
        getLogger().info("Chunk UNload PLAYER " + event.getChunk().getX() + " " + event.getChunk().getZ());
    }

    @EventHandler
    public void onPlayerMove(PlayerMoveEvent event) {
        // Works as expected
        getLogger().info(event.getTo().getX() + " " + event.getTo().getY() + " " + event.getTo().getZ());
    }

Plugin and Datapack List

No extra plugins or datapacks, test plugin only using an empty server folder.

Paper version

Custom build from build 89 44c3dd0 with only test plugin changes

ver
[21:41:35 INFO]: Checking version, please wait...
[21:41:35 INFO]: This server is running Paper version 1.21-DEV (2024-07-18T04:41:18Z) (Implementing API version 1.21-R0.1-SNAPSHOT)
You are running a development version without access to version information

Other

No response

@MagmaGuy
Copy link

+1, independently tested this for build #89 after a bug report from a user. My local was on #57 and the problem was not present there. It's a big one, hope it will get fixed soon.

@CatTeaA
Copy link

CatTeaA commented Jul 18, 2024

If the situation is true, according to your description, it would lead to the failure of the server's WorldGuard world protection, which indeed seems to be quite serious.
description

@github-project-automation github-project-automation bot moved this from 🕑 Needs Triage to Done in Issues: Bugs Jul 18, 2024
@papermc-projects papermc-projects bot moved this from Done to Invalid in Issues: Bugs Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something doesn't work as it was intended to.
Projects
Status: Invalid
Development

Successfully merging a pull request may close this issue.

4 participants