This commit is contained in:
paulevsGitch 2020-09-24 18:49:23 +03:00
parent 34e7c442e4
commit 36ea4b8726
8 changed files with 32 additions and 57 deletions

View file

@ -21,13 +21,11 @@ public class CraftingRecipes {
}
}
protected static boolean itemExists(Item item)
{
protected static boolean itemExists(Item item) {
return Registry.ITEM.getId(item) != Registry.ITEM.getDefaultId();
}
protected static boolean blockExists(Block block)
{
protected static boolean blockExists(Block block) {
return Registry.BLOCK.getId(block) != Registry.BLOCK.getDefaultId();
}
}