parent
575773a6b3
commit
e3384e3266
1 changed files with 6 additions and 8 deletions
|
@ -139,22 +139,20 @@ public class EnergyUtils {
|
||||||
public static PowerNetReceiver getReceiver(World world, EnumFacing side, BlockPos pos) {
|
public static PowerNetReceiver getReceiver(World world, EnumFacing side, BlockPos pos) {
|
||||||
TileEntity tileEntity = world.getTileEntity(pos);
|
TileEntity tileEntity = world.getTileEntity(pos);
|
||||||
if(tileEntity != null) {
|
if(tileEntity != null) {
|
||||||
PowerNetReceiver internalReceiver = getInternalReceiver(tileEntity, side);
|
|
||||||
if (internalReceiver != null) {
|
|
||||||
return internalReceiver;
|
|
||||||
}
|
|
||||||
if (Loader.isModLoaded("IC2") && RebornCoreConfig.getRebornPower().eu()) {
|
if (Loader.isModLoaded("IC2") && RebornCoreConfig.getRebornPower().eu()) {
|
||||||
PowerNetReceiver ic2receiver = getIC2Receiver(tileEntity, side);
|
PowerNetReceiver ic2receiver = getIC2Receiver(tileEntity, side);
|
||||||
if (ic2receiver != null) return ic2receiver;
|
if (ic2receiver != null) return ic2receiver;
|
||||||
}
|
}
|
||||||
if (RebornCoreConfig.getRebornPower().rf()) {
|
|
||||||
PowerNetReceiver rfReceiver = getRFReceiver(tileEntity, side);
|
|
||||||
if (rfReceiver != null) return rfReceiver;
|
|
||||||
}
|
|
||||||
if (Loader.isModLoaded("Tesla") && RebornCoreConfig.getRebornPower().tesla()) {
|
if (Loader.isModLoaded("Tesla") && RebornCoreConfig.getRebornPower().tesla()) {
|
||||||
PowerNetReceiver teslaReceiver = getTeslaReceiver(tileEntity, side);
|
PowerNetReceiver teslaReceiver = getTeslaReceiver(tileEntity, side);
|
||||||
if (teslaReceiver != null) return teslaReceiver;
|
if (teslaReceiver != null) return teslaReceiver;
|
||||||
}
|
}
|
||||||
|
if (RebornCoreConfig.getRebornPower().rf()) {
|
||||||
|
PowerNetReceiver rfReceiver = getRFReceiver(tileEntity, side);
|
||||||
|
if (rfReceiver != null) return rfReceiver;
|
||||||
|
}
|
||||||
|
PowerNetReceiver internalReceiver = getInternalReceiver(tileEntity, side);
|
||||||
|
if (internalReceiver != null) return internalReceiver;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue