mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-25 14:34:44 +00:00
TC4 & AM2 integration progress! <3
This commit is contained in:
1 parent
c309c20268
commit
ffd6f2ca94
19 files changed
+441
-147
No files matched your search
@@ -2,6 +2,7 @@ package magicbees.main.utils.compat;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import magicbees.bees.BeeManager;
|
||||
import magicbees.main.Config;
|
||||
import net.minecraft.block.Block;
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
@@ -113,6 +114,7 @@ public class ForestryHelper
|
||||
{
|
||||
Class c = Class.forName("forestry.core.config.ForestryBlock");
|
||||
Config.fAlvearyBlock = (Block)(c.getField("alveary").get(null));
|
||||
Config.fHiveBlock = (Block)(c.getField("beehives").get(null));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -131,7 +133,7 @@ public class ForestryHelper
|
||||
|
||||
public static IAllele[] getTemplateForestryForSpecies(String speciesName)
|
||||
{
|
||||
IAllele[] template = null;
|
||||
/*IAllele[] template = null;
|
||||
try
|
||||
{
|
||||
//BeeTemplates.getValiantTemplate()
|
||||
@@ -144,7 +146,8 @@ public class ForestryHelper
|
||||
FMLLog.severe("Could not get Forestry template for %s.", speciesName);
|
||||
e.printStackTrace();
|
||||
}
|
||||
return template;
|
||||
return template;*/
|
||||
return BeeManager.beeRoot.getTemplate("forestry.species" + speciesName);
|
||||
}
|
||||
|
||||
public static EnumTemperature getEnumTemperatureFromValue(float rawTemp)
|
||||
|
||||
Reference in new issue
Block a user