Skip to content

More misc fixes - #95

Open
RecursivePineapple wants to merge 7 commits into
masterfrom
more-misc-fixes
Open

More misc fixes#95
RecursivePineapple wants to merge 7 commits into
masterfrom
more-misc-fixes

Conversation

@RecursivePineapple

@RecursivePineapple RecursivePineapple commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

This fixes a crash, a minor typo, and some lighting bugs when travelling at high speeds.

This crash is caused by BC robotics polling a chunk within the unload event, causing the chunk to reload. This periodically causes fastutils to fail when it rehashes a set in EFR. The fix is to post the event, then remove the chunk from the world, which better matches vanilla's behaviour.
https://discord.com/channels/181078474394566657/1415607665375313961/1529114252680626196

There was a minor typo in the getCubesToGenerate method, whose name is a misnomer. It was renamed to getRelevantCubes and the Requirement parameter was removed from cacheCubes since it was unused.

There were also two lighting bugs.

The first was sporadic unlit caves along chunk borders. Sometimes a cave near the surface would be half lit - the start was lit, but beyond a chunk border the light didn't propagate. Also, when the player moved very quickly (faster than the chunkgen could keep up) the chunks that generated under their feet would have black borders due to improper skylight propagation. These were both caused by pending lighting updates not running after the first skylight propagation ran. Draining the queue after doing the first skylight propagation caused the whole cube sync packet to send the proper light values to the client.

There was also unnecessary lighting checks along chunk borders even when the blocks are fully exposed to the sky. I added a condition to skip these lighting updates.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@github-actions

Copy link
Copy Markdown
Contributor

#96

Co-authored-by: GitHub GTNH Actions <>
@RecursivePineapple RecursivePineapple added 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta (experimental build) Merge Into Prerelease PR will be added to -pre releases (via the dev branch). Compatibility Improves compatibility between Cubic Chunks and another mod. Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. and removed 🚧 Testing on Zeta Do not merge yet, testing this PR on Zeta (experimental build) labels Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. Compatibility Improves compatibility between Cubic Chunks and another mod. Merge Into Prerelease PR will be added to -pre releases (via the dev branch).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants