CompressWithoutStress (PistonCompression)

PistonCompression, modernized for 1.12.x and newer Java.
Back to Files

pistoncompression-1.5.1.jar

File namepistoncompression-1.5.1.jar
Uploaded
Aug 22, 2026
Downloads
26
Size
11.5 KB
Mod Loaders
Forge
File ID
8707171
Type
R
Release
Supported game versions
  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:compresswithoutstress-1630381:8707171")

Learn more about Curse Maven

What's new

v1.5.1

  • Added source code to the release.
  • Minor performance optimizations based on profiling:
    • checkForCompression() now collects the 7 checked block states into a fixed-size array instead of an ArrayList, avoiding one allocation per compression check.
    • The pending-block-check queue (onNeighborNotify/onBlockPlaceonServerTick) now stores positions as packed long values instead of BlockPos objects, cutting the per-event object allocation and hashing/equality overhead that showed up in profiling as HashSet/HashMap and BlockPos.hashCode() time.