Fix campfire not cooking (#437)
This commit is contained in:
parent
2987cd86a5
commit
691727b281
@ -31,6 +31,7 @@ public abstract class CampfireTileEntityMixin extends BlockEntityMixin {
|
|||||||
ItemStack itemstack = entity.getItems().get(i);
|
ItemStack itemstack = entity.getItems().get(i);
|
||||||
if (!itemstack.isEmpty()) {
|
if (!itemstack.isEmpty()) {
|
||||||
flag = true;
|
flag = true;
|
||||||
|
entity.cookingProgress[i]++;
|
||||||
if (entity.cookingProgress[i] >= entity.cookingTime[i]) {
|
if (entity.cookingProgress[i] >= entity.cookingTime[i]) {
|
||||||
Container container = new SimpleContainer(itemstack);
|
Container container = new SimpleContainer(itemstack);
|
||||||
ItemStack itemstack1 = level.getRecipeManager().getRecipeFor(RecipeType.CAMPFIRE_COOKING, container, level).map((p_155305_) -> {
|
ItemStack itemstack1 = level.getRecipeManager().getRecipeFor(RecipeType.CAMPFIRE_COOKING, container, level).map((p_155305_) -> {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user