DHMPEMFixer - Compatibility Fix for Mods
This mod has been integrated into MPEM MOD version 3.0 and is no longer required as a separate addon.
For easier understanding, the following abbreviations are used in the description: DH refers to the Distant Horizons mod, and MPEM refers to the Moonlit Performance Enhancement Module mod.
Without installing this fix on the client side, a critical error occurs in the DH modification. The problem is related to null values in the PACKET_SENDER or MC fields in the ForgeClientProxy class, leading to a crash.
On the server side, a similar situation occurs - the absence of the fix causes a crash due to a null PACKET_SENDER field in the ForgeServerProxy class.
Cause of the Conflict
The MPEM modification makes changes to the Forge event system. While most mods work correctly with these changes, DH turned out to be sensitive to such modifications and stops functioning properly.
Problem Solving Mechanism
The fix is implemented using mixin technology. The mod injects into the ForgeClientProxy and ForgeServerProxy classes, preventing the appearance of null values in critical fields. When null values are detected, they are automatically corrected to ensure stable operation.