Fix instantiation bug

This commit is contained in:
Christian 2012-10-24 21:58:36 -04:00
parent a72f6b1eff
commit 8a6680f9c7
1 changed files with 1 additions and 11 deletions

View File

@ -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()