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

Entity Counting is flawed on large plots #4362

Open
2 tasks done
SirYwell opened this issue Feb 25, 2024 · 0 comments
Open
2 tasks done

Entity Counting is flawed on large plots #4362

SirYwell opened this issue Feb 25, 2024 · 0 comments
Labels
Approved A project maintainer or developer has reproduced this issue Bug Something isn't working Low Priority

Comments

@SirYwell
Copy link
Member

Server Implementation

Paper

Server Version

1.20.4

Describe the bug

BukkitRegionManager#countEntities(Plot) uses getChunkAtAsync to count entities on unloaded chunks. However, this is conceptually flawed, because the array is returned and used directly. Entity counts on unloaded chunks are therefore not respected in entity caps.

This was discovered during #4356.

To Reproduce

Not easy to reproduce, as it requires a setup where entities are counted in a plot that has unloaded chunks. That's rather atypical.

Expected behaviour

The expected behavior is rather unclear. It might be fine to just ignore unloaded chunks (basically what's happening at the moment). Alternatively, a rework of the system is needed most likely, to allow including entities of unloaded chunks.

Screenshots / Videos

No response

Error log (if applicable)

No response

Plot Debugpaste

https://athion.net/ISPaster/paste/view/a9b1f24c31f542faac77c1b561359ef6

PlotSquared Version

PlotSquared version 7.3.4-SNAPSHOT

Checklist

Anything else?

No response

@SirYwell SirYwell added Bug Something isn't working Low Priority Approved A project maintainer or developer has reproduced this issue labels Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved A project maintainer or developer has reproduced this issue Bug Something isn't working Low Priority
Projects
None yet
Development

No branches or pull requests

1 participant