Fix for Achievements

This commit is contained in:
Amnet 2013-04-18 08:42:40 +02:00
parent d1e265039f
commit 60e6067961
1 changed files with 30 additions and 34 deletions

View File

@ -113,13 +113,6 @@ public class mod_BiomesOPlenty
BOPBlocks.dependantinit(); BOPBlocks.dependantinit();
BOPBiomes.init(); BOPBiomes.init();
}
@Init
public void load(FMLInitializationEvent event)
{
BOPCrossIntegration.init();
// Achievement declaration // Achievement declaration
if (BOPConfiguration.achievements == true) if (BOPConfiguration.achievements == true)
@ -137,12 +130,7 @@ public class mod_BiomesOPlenty
pageBOP = new AchievementPage("Biomes O\' Plenty", new Achievement[] {achFlower2, achRedRock2, achThorn2, achAsh2, achOrigin2, achPromised2, achMud2, achShroom2, achBarley2, achMoss2}); pageBOP = new AchievementPage("Biomes O\' Plenty", new Achievement[] {achFlower2, achRedRock2, achThorn2, achAsh2, achOrigin2, achPromised2, achMud2, achShroom2, achBarley2, achMoss2});
AchievementPage.registerAchievementPage(pageBOP); AchievementPage.registerAchievementPage(pageBOP);
}
LanguageRegistry.instance().addStringLocalization("itemGroup.tabBiomesOPlenty", "en_US", "Biomes O\' Plenty");
if (BOPConfiguration.achievements == true)
{
// Add Achievement registration // Add Achievement registration
addAchievementDesc("achFlower2", "Flower Child", "Pick some flowers!"); addAchievementDesc("achFlower2", "Flower Child", "Pick some flowers!");
addAchievementDesc("achRedRock2", "Red Rocky Mountain High", "Dig out some red rocks."); addAchievementDesc("achRedRock2", "Red Rocky Mountain High", "Dig out some red rocks.");
@ -155,7 +143,15 @@ public class mod_BiomesOPlenty
addAchievementDesc("achBarley2", "Fields Of Gold", "Upon the fields of barley."); addAchievementDesc("achBarley2", "Fields Of Gold", "Upon the fields of barley.");
addAchievementDesc("achMoss2", "Mossman", "Mothman's long-lost cousin."); addAchievementDesc("achMoss2", "Mossman", "Mothman's long-lost cousin.");
} }
}
@Init
public void load(FMLInitializationEvent event)
{
BOPCrossIntegration.init();
LanguageRegistry.instance().addStringLocalization("itemGroup.tabBiomesOPlenty", "en_US", "Biomes O\' Plenty");
LanguageRegistry.instance().addStringLocalization("generator.BIOMESOP", "en_US", "Biomes O\' Plenty"); LanguageRegistry.instance().addStringLocalization("generator.BIOMESOP", "en_US", "Biomes O\' Plenty");
// Add helpers for compatibility // Add helpers for compatibility