Skip to content

Better Circle Scanning#910

Open
Stick404 wants to merge 4 commits into
FallingColors:mainfrom
Stick404:FutureScanning
Open

Better Circle Scanning#910
Stick404 wants to merge 4 commits into
FallingColors:mainfrom
Stick404:FutureScanning

Conversation

@Stick404
Copy link
Copy Markdown
Contributor

Improves Spell Circle scanning by making a custom system to use ServerChunkCache#getChunkFuture's quicker chunk loading.
Creates a Helper Class in case spells/addons wish to use this system

Comment thread Common/src/main/java/at/petrak/hexcasting/api/utils/ChunkScanning.kt Outdated
}
val future = level.chunkSource.getChunkFuture(chunk.x,chunk.z, ChunkStatus.EMPTY,true).get()
if (future.left().isPresent){
chunks.put(chunkLong, future.left().get() as ImposterProtoChunk)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this cast safe?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh woops, I don't believe it is; thank you for the catch! I'll make ChunkScanning hold a list of ChunkAccesss instead

Stick404 and others added 2 commits May 24, 2026 13:05
…ing.kt

Co-authored-by: Aly Cerruti <aprime2003@gmail.com>
Improved Comment and removed unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📋 Backlog

Development

Successfully merging this pull request may close these issues.

2 participants