mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-25 06:14:45 +00:00
Merge pull request #28 from squeek502/master
Fixed Migration not initializing mod/modID
This commit is contained in:
commit
3ec1d277e7
1 file changed
+6
-6
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user