Archiviert
13
0

Invalidate furnace block type after change.

Dieser Commit ist enthalten in:
md_5 2015-05-21 19:02:38 +10:00
Ursprung 65fba7fb10
Commit f87cd1a53d

Datei anzeigen

@ -1,5 +1,5 @@
--- ../work/decompile-c2c33c10/net/minecraft/server/TileEntityFurnace.java 2015-05-21 17:23:15.279886524 +1000
+++ src/main/java/net/minecraft/server/TileEntityFurnace.java 2015-05-21 17:23:15.283886599 +1000
--- ../work/decompile-c2c33c10/net/minecraft/server/TileEntityFurnace.java 2015-05-21 19:02:24.117651149 +1000
+++ src/main/java/net/minecraft/server/TileEntityFurnace.java 2015-05-21 19:02:24.117651149 +1000
@@ -1,17 +1,53 @@
package net.minecraft.server;
@ -70,7 +70,7 @@
public void c() {
- boolean flag = this.isBurning();
+ boolean flag = (this.w() == Blocks.LIT_FURNACE); // CraftBukkit - SPIGOT-844 - Check if furnace block is lit using the block instead of burn time
+ boolean flag = (this.w() == Blocks.LIT_FURNACE); // CraftBukkit - SPIGOT-844 - Check if furnace block is lit using the block instead of burn time // PAIL: Rename
boolean flag1 = false;
+ // CraftBukkit start - Use wall time instead of ticks for cooking
@ -130,7 +130,7 @@
if (this.isBurning() && this.canBurn()) {
++this.cookTime;
if (this.cookTime == this.cookTimeTotal) {
@@ -179,6 +246,7 @@
@@ -179,11 +246,13 @@
} else {
this.cookTime = 0;
}
@ -138,7 +138,13 @@
}
if (flag != this.isBurning()) {
@@ -203,7 +271,8 @@
flag1 = true;
BlockFurnace.a(this.isBurning(), this.world, this.position);
+ this.E(); // CraftBukkit - Invalidate tile entity's cached block type // PAIL: Rename
}
}
@@ -203,7 +272,8 @@
} else {
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
@ -148,7 +154,7 @@
}
}
@@ -211,11 +280,38 @@
@@ -211,11 +281,38 @@
if (this.canBurn()) {
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);