mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 12:59:41 +00:00
Make the checking of instances of other mods' interfaces safer.
Fixes (part of) #2316
This commit is contained in:
1 parent
dfefcaf69a
commit
4590a71759
9 files changed
+76
-10
No files matched your search
@@ -87,7 +87,7 @@ public class MekanismGenerators implements IModule
|
||||
@EventHandler
|
||||
public void postInit(FMLPostInitializationEvent event)
|
||||
{
|
||||
if(ModAPIManager.INSTANCE.hasAPI("BuildCraftAPI|fuels") && BuildcraftFuelRegistry.fuel != null)
|
||||
if(FuelHandler.BCPresent() && BuildcraftFuelRegistry.fuel != null)
|
||||
{
|
||||
for(IFuel s : BuildcraftFuelRegistry.fuel.getFuels())
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user