Skip to content

Compressed Blocks mod causes multiplication overflow in recipe packet #44

@LazyDope

Description

@LazyDope

Describe the bug

Having this library installed alongside a compressed blocks mod with a high compression factor (in my case CB: Compressed Blocks by Sashiro) causes network packet errors that make worlds unjoinable in singleplayer or multiplayer. This is due to a multiplication overflow in the add function of com.petrolpark.core.recipe.compression.FinishableMapItemCompressionSequence, specifically the fraction calculation line. There have also been some cases where the world loads, but the recipe packet is still never received, and as such the recipe book and other recipe viewers (such as EMI) do not work.

To Reproduce

  1. Use NeoForge for 1.21.1
  2. Install Petrolpark's Library
  3. Install CB: Compressed Blocks
  4. Create/Join Singleplayer World
  5. See error/recipe book issues

Expected Behavior

Should be able to join world without issue and receive recipe packet

Screenshots

Image

System Information

Additional context

disconnect-2025-06-13_16.59.17-client.txt

Minecraft Username
ByrontheEngineer

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 BugSomething isn't working as intended🤝 CompatibilityBugs and suggestions related to compatibility with other mods

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions