Skip to content

Commit

Permalink
apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
glowredman committed Jul 5, 2022
1 parent 7be1168 commit 9828785
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
@@ -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'))
}
8 changes: 4 additions & 4 deletions repositories.gradle
Original file line number Diff line number Diff line change
@@ -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/'
}
}
19 changes: 10 additions & 9 deletions src/main/java/tehnut/chiseltones/ChiselTones.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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);
}

/**
Expand All @@ -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);
}
}
11 changes: 5 additions & 6 deletions src/main/java/tehnut/chiseltones/ConfigHandler.java
Original file line number Diff line number Diff line change
@@ -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 {

Expand All @@ -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();
}
}
}

0 comments on commit 9828785

Please sign in to comment.