In the following text, the DH will be used instead of the Distant Horizons mod,and the MPEM will be used instead of the Moonlit Performance Enhancement Module mod.
If you don't install this mod in the client side,the DH will crash because the field named PACKET_SENDER in the ForgeClientProxy class or the field named MC in it is null. And if you don't install this mod in the server side,the DH will crash because the field named PACKET_SENDER in the ForgeServerProxy class is null.
Why DH will crash?
Because the MPEM mod modified the Forge Event System,although in almost mods,it is okay,however,This modification affected the DH mod,make it won't run in a right way.
How to fix it?
This mod fixed it by using the mixin.This mod injected the ForgeClientProxy and ForgeServerProxy class to let the fields won't be null.If the field is null,this mod will modify it to make it not be null.
在接下来的文本中,DH将被用来代替遥远的地平线模组,MPEM将被用来代替月夜性能优化模组。
如果你没有在客户端安装这个mod, DH则将会崩溃,因为在ForgeClientProxy类中名为PACKET_SENDER的字段或在其中名为MC的字段为空。 如果你没有在服务器端安装这个mod, DH则将会崩溃,因为在ForgeServerProxy类中名为PACKET_SENDER的字段是空的。
为什么DH会崩溃?
因为MPEM 模组修改了Forge 的事件系统,虽然在几乎所有的模组中,这是无伤大雅的,但是,这个修改却影响了DH 模组,使它不能以正确的方式运行。
如何解决这个问题?
这个模组通过使用mixin来修复它。这个模组注入了ForgeClientProxy和ForgeServerProxy类,让字段不会为空。如果字段为空,这个模组将修改它,使其不为空。
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+