mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
Fix furnace cook time bug
This commit is contained in:
parent
c7fec9299a
commit
659c43c6f3
@ -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…
Reference in New Issue
Block a user