Close #477 Auto-Format code with new formatting settings

This commit is contained in:
mezz committed 2015-01-26 22:26:21 -08:00
1 parent 8e92d16320
commit 5b8b0c78b0
763 files changed
+13174 -8868

No files matched your search

@@ -23,14 +23,17 @@ import forestry.plugins.PluginStorage;
public class CrateRegistry implements ICrateRegistry {
private void registerCrate(ItemStack stack, String uid, boolean useOreDict) {
if (PluginManager.getStage() != PluginManager.Stage.INIT)
if (PluginManager.getStage() != PluginManager.Stage.INIT) {
throw new RuntimeException("Tried to make a crate outside of Init");
}
if (stack == null || stack.getItem() == null)
if (stack == null || stack.getItem() == null) {
throw new RuntimeException("Tried to make a crate without an item");
}
if (uid == null)
if (uid == null) {
throw new RuntimeException("Tried to make a crate without a uid");
}
ItemCrated crate = new ItemCrated(stack, useOreDict);
crate.setUnlocalizedName(uid);