Mod Block Limit Fix by tropheusj

  • Block Limit Fix by tropheusj

    Fixes a vanilla bug limiting total Blockstates to ~500k
    • 14.87 KB
    • 1.19.3
    • December 20, 2022
    • January 5, 2023
    • API and Library
      Utility & QoL
    Block Limit Fix
Mod Information
NameBlock Limit FixAuthortropheusjDescriptionFixes a vanilla bug limiting total Blockstates to ~500k
InformationDownloads:
Version: 1.19.3
Size: 14.87 KB
Updated at: January 5, 2023
Created at: December 20, 2022
Tags
API and Library
Utility & QoL

Block Limit Fix
This mod fixes a vanilla bug that occurs when there's roughly 500k unique Blockstates. When this bug is triggered, a range of issues can occur from ghost blocks to desyncs.

 

Specifically, beyond 524288 states, the math for serializing the states to packets breaks down due to a misplaced cast. This bug is fixed in 1.19.4 / 1.20, whichever comes first. This mod backports it to older versions.

 

Thanks to Patbox for debugging this and figuring out the solution.