Paper/paper-server/patches/sources/net/minecraft
David Slovikosky c637868aef Fix missing chunks due to integer overflow
This patch fixes a bug in the EndIslandDensityFunction class where the distance
from 0,0 squared overflows the maximum size of an integer. The overflow leads
to hard chunk borders around 370,000 blocks from 0,0. After this cutoff there
is a few hundred thousand block gap before end land resuming to generate at
530,000 blocks from spawn. This is due to the integer flipping back and forth.

The fix for the issue is quite simple, casting chunk coordinates to longs
allows the distance calculation to avoid overflow and work as intended.

This issue is being tracked in Mojira ticket MC-159283
2020-06-09 00:10:03 -07:00
..
advancements Remap CraftBukkit to Mojang+Yarn Mappings 2024-12-11 22:26:55 +01:00
commands misc debugging dumps 2021-02-18 20:23:28 +00:00
core Optimize MappedRegistry 2018-08-26 20:49:50 -04:00
nbt Reduce memory footprint of CompoundTag 2020-04-06 17:39:25 -07:00
network Add PlayerConnectionCloseEvent 2018-10-07 12:05:28 -07:00
resources MC Dev fixes 2016-03-30 19:36:20 -04:00
server Wait for Async Tasks during shutdown 2020-05-10 22:16:17 -04:00
stats Allow statistics to be disabled/forced 2014-01-07 15:56:26 +00:00
util PreCreatureSpawnEvent 2018-01-14 17:01:31 -05:00
world Fix missing chunks due to integer overflow 2020-06-09 00:10:03 -07: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 Improve Server Thread Pool and Thread Priorities 2018-10-23 23:14:38 -04:00