mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 06:14:41 +00:00
Use FMLInterModComms.IMCEvent to process IMC messages, arrives between Init & PostInit. Allows JEI to display changed recipes.
This commit is contained in:
1 parent
8a22312cbf
commit
402457cf0d
2 files changed
+2
-3
No files matched your search
@@ -1212,9 +1212,9 @@ public class Mekanism
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void loadComplete(FMLLoadCompleteEvent event)
|
||||
public void loadComplete(FMLInterModComms.IMCEvent event)
|
||||
{
|
||||
new IMCHandler().onIMCEvent(FMLInterModComms.fetchRuntimeMessages(this));
|
||||
new IMCHandler().onIMCEvent(event.getMessages());
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
||||
@@ -17,7 +17,6 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
|
||||
public class IMCHandler
|
||||
{
|
||||
@EventHandler
|
||||
public void onIMCEvent(List<IMCMessage> messages)
|
||||
{
|
||||
for(IMCMessage msg : messages)
|
||||
|
||||
Reference in new issue
Block a user