From 8006b774bfd7bef5382f63d568d595dff55db293 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 24 Oct 2012 21:58:36 -0400 Subject: [PATCH] Fix instantiation bug --- .../cpw/mods/fml/common/event/FMLInterModComms.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/common/cpw/mods/fml/common/event/FMLInterModComms.java b/common/cpw/mods/fml/common/event/FMLInterModComms.java index 5fe271b379..51e04ea196 100644 --- a/common/cpw/mods/fml/common/event/FMLInterModComms.java +++ b/common/cpw/mods/fml/common/event/FMLInterModComms.java @@ -36,20 +36,10 @@ public class FMLInterModComms { * */ public static class IMCEvent extends FMLEvent { - private IMCEvent(List messages) - { - this.messages = Multimaps.index(messages, new Function() { - 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 messages; - private ImmutableList currentList; public ImmutableList getMessages()