mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-20 18:07:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: b75eeca0 Boost light task priority to ensure it doesnt hold up chunk loads 3d2bc848 Ensure VillagerTrades doesn't load async - fixes #3495 e470f1ef Add more information to Timing Reports f4a47db6 Improve Thread Pool usage to allow single threads for single cpu servers a4fe910f Fix sounds when using worldedit regen command 70ad51a8 Updated Upstream (Bukkit/CraftBukkit) d7cfa4fa Improve legacy format serialization more
31 lines
1.5 KiB
Diff
31 lines
1.5 KiB
Diff
From 15ac10c2b91503b47285be76744115eff2e5e5ca 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 d5432bfeb7..91ef7ac60f 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
|
|
|