diff --git a/src/mantle/event/Migration.java b/src/mantle/event/Migration.java index e8197f9..39fad77 100644 --- a/src/mantle/event/Migration.java +++ b/src/mantle/event/Migration.java @@ -25,7 +25,8 @@ public abstract class Migration */ public Migration(ModContainer m) { - m.getModId(); + mod = m; + modID = m.getModId(); } /* @@ -63,13 +64,12 @@ public abstract class Migration * During this phase, check for old IDs and remap as needed, or destroy ones marked for removal. */ public void processMigrationEvent (FMLMissingMappingsEvent event) { - if ((!remapBlock.isEmpty() || !remapItem.isEmpty())) - { - List l = event.getAll(); + if ((!remapBlock.isEmpty() || !remapItem.isEmpty())) { + event.applyModContainer(mod); + List l = event.get(); if(l != null) { - for (MissingMapping miss : event.getAll())//yes its slow to go through extra stuff feel free to fix - { + for (MissingMapping miss : event.get()) { if (remapItem.containsKey(miss.name)) miss.remap(remapItem.get(miss.name)); else if (remapBlock.containsKey(miss.name))