mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 15:33:06 +00:00
Updated Build Craft API to v6.1.5. NB: EIO will no longer work with pre 6.1 BC versions
This commit is contained in:
1 parent
1dd0add667
commit
770e2ed823
12 files changed
+284
-131
No files matched your search
@@ -1,11 +1,9 @@
|
||||
package crazypants.enderio.power;
|
||||
|
||||
import buildcraft.api.mj.IBatteryObject;
|
||||
import buildcraft.api.mj.MjAPI;
|
||||
import buildcraft.api.power.IPowerReceptor;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import buildcraft.api.power.IPowerReceptor;
|
||||
import cofh.api.energy.IEnergyHandler;
|
||||
import crazypants.enderio.config.Config;
|
||||
|
||||
@@ -16,11 +14,7 @@ public class PowerHandlerUtil {
|
||||
return new PowerInterfaceRF((IEnergyHandler) o);
|
||||
}
|
||||
|
||||
if(Config.powerConduitOutputMJ) {
|
||||
IBatteryObject battery = MjAPI.getMjBattery(o);
|
||||
if(battery != null) {
|
||||
return new PowerInterfaceBC2(battery);
|
||||
}
|
||||
if(Config.powerConduitOutputMJ) {
|
||||
if(o instanceof IPowerReceptor) {
|
||||
return new PowerInterfaceBC((IPowerReceptor) o);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user