Files
Purpur/patches/server/0081-Fix-furnace-cook-speed-multiplier-using-values-betwe.patch
William Blake Galbreath dd928e3864 Updated Upstream (Paper)
Upstream has released updates that appears to apply and compile correctly

Paper Changes:
8d036cea Expose the internal current tick
0c715390 [PATCH] bounding box check for hanging entities (#2664)
527073aa Update config version
0d3b35c3 Rename baby zombie movement config option
2019-10-31 13:51:33 -05:00

31 lines
1.5 KiB
Diff

From cff5f796948cc4264a018359c2bfc91e0c9ba58f Mon Sep 17 00:00:00 2001
From: William Blake Galbreath <blake.galbreath@gmail.com>
Date: Sat, 19 Oct 2019 03:36:52 -0500
Subject: [PATCH] Fix furnace cook speed multiplier using values between 0 and
1
---
src/main/java/net/minecraft/server/TileEntityFurnace.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/main/java/net/minecraft/server/TileEntityFurnace.java b/src/main/java/net/minecraft/server/TileEntityFurnace.java
index 55b5646103..caa5b4368c 100644
--- a/src/main/java/net/minecraft/server/TileEntityFurnace.java
+++ b/src/main/java/net/minecraft/server/TileEntityFurnace.java
@@ -291,8 +291,10 @@ public abstract class TileEntityFurnace extends TileEntityContainer implements I
}
if (this.isBurning() && this.canBurn(irecipe)) {
- this.cookTime += cookSpeedMultiplier; // Paper - cook speed multiplier API
- if (this.cookTime >= this.cookTimeTotal) { // Paper - cook speed multiplier API
+ // Purpur start - fix cook speed multiplier API
+ ++this.cookTime;
+ if (this.cookTime >= this.cookTimeTotal / this.cookSpeedMultiplier) {
+ // Purpur end - fix cook speed multiplier API
this.cookTime = 0;
this.cookTimeTotal = this.getRecipeCookingTime();
this.burn(irecipe);
--
2.24.0.rc1