mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 11:05:40 +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 {
|
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
|
@Override
|
||||||
public void applyModContainer(ModContainer activeContainer) {
|
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;
|
private ImmutableList<IMCMessage> currentList;
|
||||||
|
|
||||||
public ImmutableList<IMCMessage> getMessages()
|
public ImmutableList<IMCMessage> getMessages()
|
||||||
|
|||||||
Reference in new issue
Block a user