mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-21 18:37:42 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: df0d7b0d Update upstream CB 6ea3c2cf [CI-SKIP] Rebuild patches d7bed4cb Heavily optimise random block ticking (#2914) b66d9ff8 Update upstream CB ba71c5d6 Stop stripping private use block Unicode from signs 28d9dcfc Entity Jump API (#1587) 9976a768 Fix PlayerNaturallySpawnCreaturesEvent boolean inversion 054e20da Clean up imports on ThrownEggHatchEvent a8984ccb Add ThrownEggHatchEvent (#1982) 9f24d495 Allow nerfed blazes, endermen to take water damage (#2847)
31 lines
1.5 KiB
Diff
31 lines
1.5 KiB
Diff
From c3947a742f1f0a5ef4ee25c84d96210af0a4fd1d 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 d5432bfeb..91ef7ac60 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
|
|
|