Fix more null warnings

This commit is contained in:
mezz committed 2016-10-21 00:22:24 -07:00
1 parent ca1b4b03b1
commit b2963069fc
6 files changed
+22 -19

No files matched your search

@@ -67,10 +67,10 @@ public class Lumbermill {
if (recipe.recipeItems.size() != 1) {
continue;
}
if (!(recipe.recipeItems.get(0) instanceof ItemStack)) {
if (!(recipe.recipeItems.get(0) != null)) {
continue;
}
final ItemStack input = (ItemStack) recipe.recipeItems.get(0);
final ItemStack input = recipe.recipeItems.get(0);
if (recipe.getRecipeOutput() != null && recipe.getRecipeOutput().isItemEqual(output)) {
list.add(input);
}