mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-23 21:39:51 +00:00
Close #477 Auto-Format code with new formatting settings
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user