chunky-dev / chunky

A path tracer to create realistic images of your Minecraft worlds.
https://chunky-dev.github.io/docs
GNU General Public License v3.0
637 stars 76 forks source link

Support LZ4 compressed region files #1684

Closed ShirleyNekoDev closed 6 months ago

ShirleyNekoDev commented 6 months ago

Snapshot 24w04a added LZ4 as new region-file-compression.

The article states that there are 2 possible values: deflate (zlib) and lz4 - we also support gzip, probably from older versions (not sure)?

Relevant code:

This feature requires an additional dependency, because Java JDK does not ship LZ4 decoders. Probably one of those: LZ4 Java or Kanzi.

leMaik commented 6 months ago

Gzip is unused by Minecraft but technically an allowed value of the file format.

LZ4 Java looks like the smaller dependency to me that doesn't come with things we don't need.

NotStirred commented 6 months ago

gzip is used in cubic chunks region files