Bump version number & small NPE fix.

This commit is contained in:
Dragon2488 2016-07-22 00:21:32 +07:00
parent b292fdd352
commit 8a053117c6
2 changed files with 16 additions and 14 deletions

View file

@ -64,7 +64,7 @@ configurations {
}
version = "1.3.4"
version = "1.3.5"
def ENV = System.getenv()
if (ENV.BUILD_NUMBER) {

View file

@ -138,6 +138,7 @@ public class EnergyUtils {
public static PowerNetReceiver getReceiver(World world, EnumFacing side, BlockPos pos) {
TileEntity tileEntity = world.getTileEntity(pos);
if(tileEntity != null) {
if (Loader.isModLoaded("IC2") && RebornCoreConfig.getRebornPower().eu()) {
PowerNetReceiver ic2receiver = getIC2Receiver(tileEntity, side);
if (ic2receiver != null) return ic2receiver;
@ -152,6 +153,7 @@ public class EnergyUtils {
}
PowerNetReceiver internalReceiver = getInternalReceiver(tileEntity, side);
if (internalReceiver != null) return internalReceiver;
}
return null;
}