aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0034-Prevent-tile-entity-and-entity-crashes.patch
diff options
context:
space:
mode:
authorSpottedleaf <[email protected]>2023-10-16 18:52:28 -0700
committerSpottedleaf <[email protected]>2023-10-16 18:52:28 -0700
commit00331d943e012ba5cd22118607c35e720b06fba0 (patch)
tree6ac6661637541f41ecc2fddc9d3cf1db690ec748 /patches/server/0034-Prevent-tile-entity-and-entity-crashes.patch
parent2f4281e2b44aed235f12369de84c9bb035746844 (diff)
downloadPaper-00331d943e012ba5cd22118607c35e720b06fba0.tar.gz
Paper-00331d943e012ba5cd22118607c35e720b06fba0.zip
Fix mushrooms not generating in swamps
During feature generation, light data is not initialised and will always return 15 in Starlight. Vanilla can possibly return 0 if partially initialised, which allows some mushroom blocks to generate. In general, the brightness value from the light engine should not be used until the chunk is ready. To emulate Vanilla behavior better, we return 0 as the brightness during world gen unless the target chunk is finished lighting. The regular light retrieval outside of WorldGenRegion remains the same, as behaviorally chunks not lit should be at max skylight and zero block light.
Diffstat (limited to 'patches/server/0034-Prevent-tile-entity-and-entity-crashes.patch')
0 files changed, 0 insertions, 0 deletions