Fix campfire not cooking (#437)

This commit is contained in:
IzzelAliz 2021-12-30 11:45:33 +08:00
parent 2987cd86a5
commit 691727b281
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -31,6 +31,7 @@ public abstract class CampfireTileEntityMixin extends BlockEntityMixin {
ItemStack itemstack = entity.getItems().get(i);
if (!itemstack.isEmpty()) {
flag = true;
entity.cookingProgress[i]++;
if (entity.cookingProgress[i] >= entity.cookingTime[i]) {
Container container = new SimpleContainer(itemstack);
ItemStack itemstack1 = level.getRecipeManager().getRecipeFor(RecipeType.CAMPFIRE_COOKING, container, level).map((p_155305_) -> {