External mod API
This commit is contained in:
parent
be459bed73
commit
5cdcc72531
6 changed files with 97 additions and 26 deletions
|
@ -8,8 +8,7 @@ public class RecipeHelper {
|
|||
public static boolean exists(ItemConvertible item) {
|
||||
if (item instanceof Block) {
|
||||
return Registry.BLOCK.getId((Block) item) != Registry.BLOCK.getDefaultId();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return Registry.ITEM.getId(item.asItem()) != Registry.ITEM.getDefaultId();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue