mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-18 11:22:15 +01:00
Fix furnace cook time bug
This commit is contained in:
parent
c7fec9299a
commit
659c43c6f3
1 changed files with 4 additions and 4 deletions
|
@ -13,12 +13,12 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
--- a/src/main/java/net/minecraft/server/TileEntityFurnace.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntityFurnace.java
|
||||
@@ -0,0 +0,0 @@ public class TileEntityFurnace extends TileEntityContainer implements ITickable,
|
||||
if (this.isBurning() && this.canBurn()) {
|
||||
this.cookTime += elapsedTicks;
|
||||
if (this.cookTime >= this.cookTimeTotal) {
|
||||
this.cookTime = 0;
|
||||
- this.cookTimeTotal = this.a(this.items[0]);
|
||||
+ this.cookTimeTotal -= this.a(this.items[0]); // Paper - Fix Furnace cook time bug
|
||||
- this.cookTime = 0;
|
||||
+ this.cookTime -= this.a(this.items[0]); // Paper
|
||||
this.cookTimeTotal = this.a(this.items[0]);
|
||||
this.burn();
|
||||
flag1 = true;
|
||||
}
|
||||
--
|
Loading…
Add table
Reference in a new issue