Skip to content

Commit

Permalink
Improve accuracy of Smoker check
Browse files Browse the repository at this point in the history
  • Loading branch information
Roadhog360 committed Apr 18, 2024
1 parent 08c02e8 commit 7a7e67b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public boolean canAdd(ItemStack input, ItemStack result) {
// That was why DragonAPI somehow fixed a Bug in here, because Reika removes nulls from the List!
if (input != null && result != null) {
//If the result is a food, allow smelting.
return result.getItem() instanceof ItemFood;
return result.getItem() instanceof ItemFood && ((ItemFood) result.getItem()).func_150905_g(result) > 0;
}
}
return false;
Expand Down

0 comments on commit 7a7e67b

Please sign in to comment.