Add ic2 to dev env, and attempt to fix a world gen crash

This commit is contained in:
modmuss50 2016-06-04 18:04:30 +01:00
parent d80280b110
commit eaae9a380d
2 changed files with 8 additions and 3 deletions

View file

@ -52,6 +52,10 @@ repositories {
maven { maven {
url "http://maven.tterrag.com/" url "http://maven.tterrag.com/"
} }
maven {
name = "ic2"
url = "http://maven.ic2.player.to/"
}
} }
configurations { configurations {
@ -69,7 +73,7 @@ if (ENV.BUILD_NUMBER) {
minecraft { minecraft {
version = "1.9.4-12.17.0.1950" version = "1.9.4-12.17.0.1950"
mappings = "snapshot_20160604" mappings = "snapshot_20160518"
replace "@MODVERSION@", project.version replace "@MODVERSION@", project.version
// makeObfSourceJar = false // makeObfSourceJar = false
useDepAts = true useDepAts = true
@ -98,6 +102,7 @@ dependencies {
deobfCompile "slimeknights.mantle:Mantle:1.9.4-0.10.1.jenkins142" deobfCompile "slimeknights.mantle:Mantle:1.9.4-0.10.1.jenkins142"
deobfCompile "slimeknights:TConstruct:1.9.4-2.3.1.jenkins229" deobfCompile "slimeknights:TConstruct:1.9.4-2.3.1.jenkins229"
deobfCompile "mcjty.theoneprobe:TheOneProbe:1.9.4-1.0.4-14" deobfCompile "mcjty.theoneprobe:TheOneProbe:1.9.4-1.0.4-14"
deobfCompile 'net.industrial-craft:industrialcraft-2:2.5.1-ex19:dev'
} }

View file

@ -259,8 +259,8 @@ public class TechRebornWorldGen implements IWorldGenerator
{ {
return; return;
} }
if(chance <0){ if(chance <= 0){
chance = 0; chance = 1;
} }
if (random.nextInt(chance) == 0) if (random.nextInt(chance) == 0)
{ {