mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #592 Some Crates are missing a recipe
This commit is contained in:
1 parent
803911e10a
commit
c82dd0fbfb
18 files changed
+454
-599
No files matched your search
@@ -22,17 +22,15 @@ import forestry.plugins.PluginStorage;
|
||||
|
||||
public class CrateRegistry implements ICrateRegistry {
|
||||
|
||||
private void registerCrate(ItemStack stack, String uid, boolean useOreDict) {
|
||||
if (PluginManager.getStage() != PluginManager.Stage.INIT) {
|
||||
throw new RuntimeException("Tried to make a crate outside of Init");
|
||||
}
|
||||
|
||||
private static void registerCrate(ItemStack stack, String uid, boolean useOreDict) {
|
||||
if (stack == null || stack.getItem() == null) {
|
||||
throw new RuntimeException("Tried to make a crate without an item");
|
||||
Proxies.log.severe("Tried to make a crate without an item");
|
||||
return;
|
||||
}
|
||||
|
||||
if (uid == null) {
|
||||
throw new RuntimeException("Tried to make a crate without a uid");
|
||||
Proxies.log.severe("Tried to make a crate without a uid");
|
||||
return;
|
||||
}
|
||||
|
||||
ItemCrated crate = new ItemCrated(stack, useOreDict);
|
||||
|
||||
Reference in new issue
Block a user