13
0
geforkt von Mirrors/Paper

Alter furnace cookTime based on total cook time

Fixes GH-613
Dieser Commit ist enthalten in:
Zach Brown 2017-03-02 20:57:20 -06:00
Ursprung 14e7575684
Commit 252bca6deb

Datei anzeigen

@ -9,7 +9,7 @@ cook in the expected amount of time as the cook time was not decremented correct
This patch ensures that furnaces cook to the correct wall time expectation. This patch ensures that furnaces cook to the correct wall time expectation.
diff --git a/src/main/java/net/minecraft/server/TileEntityFurnace.java b/src/main/java/net/minecraft/server/TileEntityFurnace.java diff --git a/src/main/java/net/minecraft/server/TileEntityFurnace.java b/src/main/java/net/minecraft/server/TileEntityFurnace.java
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 index 2f1f3edf5..e230d1608 100644
--- a/src/main/java/net/minecraft/server/TileEntityFurnace.java --- a/src/main/java/net/minecraft/server/TileEntityFurnace.java
+++ b/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, @@ -0,0 +0,0 @@ public class TileEntityFurnace extends TileEntityContainer implements ITickable,
@ -17,7 +17,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
this.cookTime += elapsedTicks; this.cookTime += elapsedTicks;
if (this.cookTime >= this.cookTimeTotal) { if (this.cookTime >= this.cookTimeTotal) {
- this.cookTime = 0; - this.cookTime = 0;
+ this.cookTime -= this.a(this.items.get(0)); // Paper + this.cookTime -= this.cookTimeTotal; // Paper
this.cookTimeTotal = this.a((ItemStack) this.items.get(0)); this.cookTimeTotal = this.a((ItemStack) this.items.get(0));
this.burn(); this.burn();
flag1 = true; flag1 = true;