Merge pull request #28 from squeek502/master

Fixed Migration not initializing mod/modID
This commit is contained in:
Zach committed 2014-09-12 23:19:33 -04:00
commit 3ec1d277e7
1 file changed
+6 -6
+6 -6
View File
@@ -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<MissingMapping> l = event.getAll();
if ((!remapBlock.isEmpty() || !remapItem.isEmpty())) {
event.applyModContainer(mod);
List<MissingMapping> 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))