diff --git a/dependencies.gradle b/dependencies.gradle index 43a0b05..72631e6 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -1,4 +1,4 @@ dependencies { - compile 'com.github.GTNewHorizons:Chisel:2.10.13-GTNH:dev' - compile(deobf('https://mediafiles.forgecdn.net/files/2223/720/Ztones-1.7.10-2.2.1.jar')) + compile 'com.github.GTNewHorizons:Chisel:2.10.13-GTNH:dev' + compile(deobf('https://mediafiles.forgecdn.net/files/2223/720/Ztones-1.7.10-2.2.1.jar')) } diff --git a/repositories.gradle b/repositories.gradle index 2a43e0b..c297003 100644 --- a/repositories.gradle +++ b/repositories.gradle @@ -1,6 +1,6 @@ repositories { - maven { - name 'GTNH maven' - url 'http://jenkins.usrv.eu:8081/nexus/content/repositories/public/' - } + maven { + name 'GTNH maven' + url 'http://jenkins.usrv.eu:8081/nexus/content/repositories/public/' + } } diff --git a/src/main/java/tehnut/chiseltones/ChiselTones.java b/src/main/java/tehnut/chiseltones/ChiselTones.java index 2d7f555..305f5fe 100644 --- a/src/main/java/tehnut/chiseltones/ChiselTones.java +++ b/src/main/java/tehnut/chiseltones/ChiselTones.java @@ -1,16 +1,19 @@ package tehnut.chiseltones; +import static com.riciJak.Ztones.init.ModBlocks.*; + import com.cricketcraft.chisel.api.carving.CarvingUtils; import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; -import net.minecraft.block.Block; - import java.io.File; +import net.minecraft.block.Block; -import static com.riciJak.Ztones.init.ModBlocks.*; - -@Mod(modid = ModInformation.ID, name = ModInformation.NAME, version = ModInformation.VERSION, dependencies = ModInformation.DEPEND) +@Mod( + modid = ModInformation.ID, + name = ModInformation.NAME, + version = ModInformation.VERSION, + dependencies = ModInformation.DEPEND) public class ChiselTones { @Mod.Instance @@ -110,8 +113,7 @@ public static void addVariations() { */ private static void addVariationFast(String groupName, Block block, int maxMeta, boolean config) { if (config) - for (int meta = 0; meta <= maxMeta; meta++) - CarvingUtils.chisel.addVariation(groupName, block, meta, meta); + for (int meta = 0; meta <= maxMeta; meta++) CarvingUtils.chisel.addVariation(groupName, block, meta, meta); } /** @@ -122,7 +124,6 @@ private static void addVariationFast(String groupName, Block block, int maxMeta, * @param config - Does the config allow */ private static void addVariationWithoutMeta(String groupName, Block block, int order, boolean config) { - if (config) - CarvingUtils.chisel.addVariation(groupName, block, 0, order); + if (config) CarvingUtils.chisel.addVariation(groupName, block, 0, order); } } diff --git a/src/main/java/tehnut/chiseltones/ConfigHandler.java b/src/main/java/tehnut/chiseltones/ConfigHandler.java index c8b1db9..072f017 100644 --- a/src/main/java/tehnut/chiseltones/ConfigHandler.java +++ b/src/main/java/tehnut/chiseltones/ConfigHandler.java @@ -1,8 +1,7 @@ package tehnut.chiseltones; -import net.minecraftforge.common.config.Configuration; - import java.io.File; +import net.minecraftforge.common.config.Configuration; public class ConfigHandler { @@ -22,12 +21,12 @@ public static void init(File file) { public static void syncConfig() { config.setCategoryComment(misc, "Misc settings."); - String description = "There are 2 modes supported currently: " + - "\n0 - Allow chiseling of the Ztones Tile into each of the different types Ztones adds at a meta of 0. Then you cycle through from there. This makes the crafting recipes useless. " + - "\n1 - Allow chiseling between all the blocks within their type. This requires the user to still craft the type, but makes the cycling useless."; + String description = "There are 2 modes supported currently: " + + "\n0 - Allow chiseling of the Ztones Tile into each of the different types Ztones adds at a meta of 0. Then you cycle through from there. This makes the crafting recipes useless. " + + "\n1 - Allow chiseling between all the blocks within their type. This requires the user to still craft the type, but makes the cycling useless."; variationAdditionType = config.getInt("variationAdditionType", misc, 0, 0, 1, description); config.save(); } -} \ No newline at end of file +}