Canvas Bug Fix

Forcefully fixes two bugs that are sometimes prominent in modpacks related to NaN saturation values & loot-generated items with incompatible enchantments.

by
57 Downloads
fabricgame-mechanics
Rent Server with this Mod

About this Mod

A mod dedicated for my Canvas modpack that forcefully fixes two bugs that are sometimes prominent in 1.18.2 fabric modpacks related to NaN saturation values & generated items with incompatible enchantments.

  • For whatever reason saturation on the server-side can reach negative or incorrect values, especially in modpacks. This is almost impossible to detect and very annoying to test, even with a thorough binary search. This weird behavior is now fixed. Upon detecting invalid (NaN/Infinite) saturation value, it will reset the player's saturation value back to normal (4).

  • Fixed illegal enchanted items from generating; when using mods that add various different enchantments the game would sometimes ignore the coded incompatabilities with one another onto a loot-generated item, including hardcoded ones from vanilla. Even mods like Enchantment Groups that restructure enchantment (in)compatibilites for modpacks wouldn't work. This mod automatically reads from the game what enchantments are suppose to be incompatible with one another and properly corrects this behavior. For example, Protection and Fire Protection on an item will have one of them removed randomly when detected on an armor piece. Enchanted books are ignored, but when put into an anvil with an item it will fix itself post-combination. It should be compatible with every enchantment mod.

Available Versions

Canvas Bug Fixrelease
MC 1.18.2fabric
July 2, 2025

How to Install Canvas Bug Fix on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.18.2).

3

Install Mod

Open the mod browser in the dashboard and search for "Canvas Bug Fix". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabric

Minecraft Versions

1.18.2

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Canvas Bug Fix server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.18.2). You can switch loaders with one click in the panel.

Is Canvas Bug Fix compatible with fabric?

Canvas Bug Fix officially supports fabric for Minecraft 1.18.2. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Canvas Bug Fix – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Canvas Bug Fix consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Canvas Bug Fix with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.18.2