diff --git a/build.gradle b/build.gradle index 4f7bc8a43..3fa499c90 100644 --- a/build.gradle +++ b/build.gradle @@ -49,7 +49,7 @@ repositories { dependencies { compile "net.darkhax.tesla:Tesla-1.12:1.0.59" deobfCompile "mezz.jei:jei_1.12:4.7.0.68" - compileOnly "org.cyclops.commoncapabilities:CommonCapabilities:1.11.2-1.3.3-115" + deobfCompile "org.cyclops.commoncapabilities:CommonCapabilities:1.12-1.3.3+" } processResources { diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/RegistryHandler.java b/src/main/java/de/ellpeck/actuallyadditions/mod/RegistryHandler.java index 4439e1f06..446b14928 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/RegistryHandler.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/RegistryHandler.java @@ -1,6 +1,7 @@ package de.ellpeck.actuallyadditions.mod; import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks; +import de.ellpeck.actuallyadditions.mod.config.values.ConfigBoolValues; import de.ellpeck.actuallyadditions.mod.crafting.InitCrafting; import de.ellpeck.actuallyadditions.mod.gen.village.InitVillager; import de.ellpeck.actuallyadditions.mod.items.InitItems; @@ -51,8 +52,8 @@ public class RegistryHandler{ public void onVillagerRegistry(Register event){ InitVillager.init(); - event.getRegistry().register(InitVillager.jamProfession); - event.getRegistry().register(InitVillager.engineerProfession); + if(ConfigBoolValues.JAM_VILLAGER_EXISTS.isEnabled()) event.getRegistry().register(InitVillager.jamProfession); + if(ConfigBoolValues.ENGINEER_VILLAGER_EXISTS.isEnabled()) event.getRegistry().register(InitVillager.engineerProfession); } @SubscribeEvent diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityLaserRelayEnergy.java b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityLaserRelayEnergy.java index 827334d85..60446db28 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityLaserRelayEnergy.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/tile/TileEntityLaserRelayEnergy.java @@ -163,6 +163,7 @@ public class TileEntityLaserRelayEnergy extends TileEntityLaserRelay{ TileEntity tile = theRelay.receiversAround.get(facing); EnumFacing opp = facing.getOpposite(); + if(tile != null){ if(tile.hasCapability(CapabilityEnergy.ENERGY, opp)){ IEnergyStorage cap = tile.getCapability(CapabilityEnergy.ENERGY, opp); if(cap != null && cap.receiveEnergy(maxTransfer, true) > 0){ @@ -178,6 +179,7 @@ public class TileEntityLaserRelayEnergy extends TileEntityLaserRelay{ } } } + } } if(workedOnce){