From 02ac64943c53ac5a2ed526b91159a6d56ab20aaa Mon Sep 17 00:00:00 2001 From: squeek Date: Fri, 12 Sep 2014 19:01:03 -0700 Subject: [PATCH 1/2] Revert "fix issue with remap event not applying mod containers correctly by checking full remap list" This reverts commit a1dc18fa66ae0a419bf9187215be3188a42648f4. --- src/mantle/event/Migration.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/mantle/event/Migration.java b/src/mantle/event/Migration.java index e8197f9..fb89206 100644 --- a/src/mantle/event/Migration.java +++ b/src/mantle/event/Migration.java @@ -63,13 +63,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)) From 9a0cb4a732606d0de9b5900b26653c10649ab298 Mon Sep 17 00:00:00 2001 From: squeek Date: Fri, 12 Sep 2014 20:02:36 -0700 Subject: [PATCH 2/2] Fixed Migration not initializing mod/modID * Closes #27 --- src/mantle/event/Migration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mantle/event/Migration.java b/src/mantle/event/Migration.java index fb89206..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(); } /*