From 882050bda0dbd5725789bf009ed6962f4d84a1dd Mon Sep 17 00:00:00 2001 From: cech12 Date: Sun, 12 Nov 2023 09:14:24 +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 b932c31..dad5dcc 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.2-2.2.0.2] - 2023-11-12 +### Fixed +- cook time factor was sometimes ignored (thanks to Lcannine for the report) #31 + ## [1.20.2-2.2.0.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 1f98a1c..d4a24c0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -12,7 +12,7 @@ loader_version_range=[48,) ## Mod Properties mod_id=brickfurnace -mod_version=2.2.0.1 +mod_version=2.2.0.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 aead725..0a2806b 100644 --- a/src/main/java/cech12/brickfurnace/blockentity/AbstractBrickFurnaceBlockEntity.java +++ b/src/main/java/cech12/brickfurnace/blockentity/AbstractBrickFurnaceBlockEntity.java @@ -157,6 +157,7 @@ public RecipeHolder getRecipe() { return null; } if (this.level != null && curRecipe != null && curRecipe.value().matches(this, level)) { + dataAccess.set(COOK_TIME_TOTAL, getTotalCookTime(curRecipe)); return curRecipe; } else { RecipeHolder rec = null;