Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
swap to dev jars from dvs1, use standard forge config files
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Feb 23, 2014
1 parent 50bb1ab commit c1c7b13
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
23 changes: 20 additions & 3 deletions build.gradle
Expand Up @@ -26,8 +26,8 @@ buildscript {

repositories {
maven {
name 'SlimeKnights Maven FS'
url 'http://aeon.sunstrike.io'
name 'DVS1 Maven FS'
url 'http://dvs1.progwml6.com/files/maven'
}
maven {
name 'ForgeFS'
Expand All @@ -37,6 +37,7 @@ repositories {

// Load ForgeGradle
apply plugin: 'forge'
group = 'paintedStone'

// Define properties file
ext.configFile = file "build.properties"
Expand Down Expand Up @@ -65,7 +66,7 @@ if (configFile2.exists()){
}

dependencies {
compile "mantle:Mantle:${config.mantle_version}:dev"
compile "mantle:Mantle:${config.minecraft_version}-${config.mantle_version}:deobf"
}

// Finds and sets version data
Expand Down Expand Up @@ -137,3 +138,19 @@ artifacts {
archives deobfJar
}

task("uploadJars", dependsOn:"build") {

description = "uploads JARs"

if (project.hasProperty("local_maven")) {
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository(url: "file://${local_maven}")
}
}
}
}
}

4 changes: 2 additions & 2 deletions build.properties
@@ -1,3 +1,3 @@
minecraft_version=1.7.2
forge_version=10.12.0.1024
mantle_version=e2c89a
forge_version=10.12.0.1027
mantle_version=98.cb9feb6
20 changes: 1 addition & 19 deletions src/main/java/paintedstone/PHPaint.java
Expand Up @@ -14,29 +14,11 @@ public static void initProps (File location)
* Second: Create the actual config file
* Note: Configs are a pain, but absolutely necessary for every mod.
*/
File newFile = new File(location + "/PaintedStone.txt");

/* Some basic debugging will go a long way */
try
{
newFile.createNewFile();
}
catch (IOException e)
{
System.out.println("Could not create configuration file for Painted Stone. Reason:");
System.out.println(e);
}

/* [Forge] Configuration class, used as config method */
Configuration config = new Configuration(newFile);

Configuration config = new Configuration(confFile);
/* Load the configuration file */
config.load();

/* Define the mod's IDs.
* Avoid values below 4096 for items and in the 250-450 range for blocks
*/

//Blocks
coloredStone = config.get("Blocks", "Colored Stone", true).getBoolean(true);
coloredCobble = config.get("Blocks", "Colored Cobblestone", true).getBoolean(true);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/paintedstone/PaintedStone.java
Expand Up @@ -30,7 +30,7 @@ public class PaintedStone
@EventHandler
public void preInit (FMLPreInitializationEvent event)
{
PHPaint.initProps(event.getModConfigurationDirectory());
PHPaint.initProps(event.getSuggestedConfigurationFile());
MinecraftForge.EVENT_BUS.register(this);
TConstruct = Loader.isModLoaded("TConstruct");
tab = new TabPaintedStone("paintedstone");
Expand Down

0 comments on commit c1c7b13

Please sign in to comment.