From d1732b5c4d74bc9f6dc5d938a59bc3ad8e1dc296 Mon Sep 17 00:00:00 2001 From: cech12 Date: Sun, 12 Nov 2023 09:10:47 +0100 Subject: [PATCH] fixed: cook time factor was sometimes ignored #31 --- CHANGELOG.md | 4 ++++ gradle.properties | 2 +- .../blockentity/AbstractBrickFurnaceBlockEntity.java | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee4e3d2..b3a69a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Forge Recommended Versioning](https://mcforge.readthedocs.io/en/latest/conventions/versioning/). +## [1.20.1-2.1.1.2] - 2023-11-12 +### Fixed +- cook time factor was sometimes ignored (thanks to Lcannine for the report) #31 + ## [1.20.1-2.1.1.1] - 2023-11-08 ### Fixed - cook time factor was ignored for every first smelted item (thanks to Lcannine for the report) #29 diff --git a/gradle.properties b/gradle.properties index fd8c4c4..d7d1f15 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ loader_version_range=[47,) ## Mod Properties mod_id=brickfurnace -mod_version=2.1.1.1 +mod_version=2.1.1.2 mod_group_id=cech12.brickfurnace mod_name=Brick Furnace mod_authors=Cech12 diff --git a/src/main/java/cech12/brickfurnace/blockentity/AbstractBrickFurnaceBlockEntity.java b/src/main/java/cech12/brickfurnace/blockentity/AbstractBrickFurnaceBlockEntity.java index 501cf0e..ea22fb2 100644 --- a/src/main/java/cech12/brickfurnace/blockentity/AbstractBrickFurnaceBlockEntity.java +++ b/src/main/java/cech12/brickfurnace/blockentity/AbstractBrickFurnaceBlockEntity.java @@ -159,6 +159,7 @@ public AbstractCookingRecipe getRecipe() { return null; } if (this.level != null && curRecipe != null && curRecipe.matches(this, level)) { + dataAccess.set(COOK_TIME_TOTAL, getTotalCookTime(curRecipe)); return curRecipe; } else { AbstractCookingRecipe rec = null;