PaperMC/paper-server/patches/sources/net/minecraft
Martijn Muijsers badf809fef Optimize nearest structure border iteration
Getting the nearest generated structure contains a nested set of loops that
iterates over all chunks at a specific chessboard distance. It does this by
iterating over the entire square of chunks within that distance, and checking
if the coordinates are at exactly the right distance to be on the border.

This patch optimizes the iteration by only iterating over the border chunks.
This evaluated chunks are the same, and in the same order, as before, to
ensure that the returned found structure (which may for example be a buried
treasure that will be marked on a treasure map) is the same as in vanilla.
2023-08-21 21:05:09 +02:00
..
advancements Improve logging and errors 2022-12-14 15:52:11 -08:00
commands Fix cmd permission levels for command blocks 2022-01-24 15:32:02 -08:00
core Call missing BlockDispenseEvent 2022-10-29 15:41:56 +02:00
nbt Reduce memory footprint of CompoundTag 2020-04-06 17:39:25 -07:00
network Add Listing API for Player 2023-01-11 16:40:39 -05:00
resources Sanitize ResourceLocation error logging 2021-08-26 12:09:47 +02:00
server Add BlockFace to BlockDamageEvent 2023-08-21 04:36:07 +02:00
stats Allow statistics to be disabled/forced 2014-01-07 15:56:26 +00:00
util Validate usernames 2022-01-01 05:19:37 -08:00
world Optimize nearest structure border iteration 2023-08-21 21:05:09 +02:00
ChatFormatting.java.patch Adventure 2021-01-29 17:54:03 +01:00
CrashReport.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
CrashReportCategory.java.patch Deobfuscate stacktraces in log messages, crash reports, and etc. 2021-06-20 18:19:09 -07:00
Util.java.patch Remove client-side code using deprecated for removal AccessController 2021-11-26 15:09:58 -08:00