PlotRangeGenerator iterating wrong #3344
Labels
Approved
A project maintainer or developer has reproduced this issue
Bug
Something isn't working
Performance Issues
Server Implementation
Paper
Server Version
1.16.5
Describe the bug
The bug occurs, if a merged plot is pretty far away from center on the Plot.Y- Axis.
Then the iterator sets this.y to 0 instead of the starting value, which causes the main thread to crash.
To Reproduce
Start a Server with the latest PlotSquared version installed.
Go to e.g 0,25000 on the plot grid.
merge 2 times on the y axis, and then n times on the x axis, the getRegions() method iterates on n * 25k plots.
Server crashes because the main-thread pauses for too long.
Expected behaviour
it should only iterate on the plots inside the start-end fields.
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
PlotSquared Version
latest
Checklist
Anything else?
No response
The text was updated successfully, but these errors were encountered: