mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Fix instantiation bug
This commit is contained in:
1 parent
7cc91cfb0c
commit
8006b774bf
1 file changed
+1
-11
@@ -36,20 +36,10 @@ public class FMLInterModComms {
|
||||
*
|
||||
*/
|
||||
public static class IMCEvent extends FMLEvent {
|
||||
private IMCEvent(List<IMCMessage> messages)
|
||||
{
|
||||
this.messages = Multimaps.index(messages, new Function<IMCMessage, String>() {
|
||||
public String apply(IMCMessage msg) { return msg.sender; };
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyModContainer(ModContainer activeContainer) {
|
||||
currentList = messages.get(activeContainer.getModId());
|
||||
currentList = ImmutableList.copyOf(modMessages.get(activeContainer.getModId()));
|
||||
}
|
||||
|
||||
private final ImmutableListMultimap<String, IMCMessage> messages;
|
||||
|
||||
private ImmutableList<IMCMessage> currentList;
|
||||
|
||||
public ImmutableList<IMCMessage> getMessages()
|
||||
|
||||
Reference in new issue
Block a user