External mod API

This commit is contained in:
Aleksey 2020-10-16 16:24:04 +03:00
parent be459bed73
commit 5cdcc72531
6 changed files with 97 additions and 26 deletions

View file

@ -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();
}
}