mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-25 16:50:17 +01:00
Invalidate furnace block type after change.
This commit is contained in:
parent
65fba7fb10
commit
f87cd1a53d
1 changed files with 12 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
||||||
--- ../work/decompile-c2c33c10/net/minecraft/server/TileEntityFurnace.java 2015-05-21 17:23:15.279886524 +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 17:23:15.283886599 +1000
|
+++ src/main/java/net/minecraft/server/TileEntityFurnace.java 2015-05-21 19:02:24.117651149 +1000
|
||||||
@@ -1,17 +1,53 @@
|
@@ -1,17 +1,53 @@
|
||||||
package net.minecraft.server;
|
package net.minecraft.server;
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
|
|
||||||
public void c() {
|
public void c() {
|
||||||
- boolean flag = this.isBurning();
|
- 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;
|
boolean flag1 = false;
|
||||||
|
|
||||||
+ // CraftBukkit start - Use wall time instead of ticks for cooking
|
+ // CraftBukkit start - Use wall time instead of ticks for cooking
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
if (this.isBurning() && this.canBurn()) {
|
if (this.isBurning() && this.canBurn()) {
|
||||||
++this.cookTime;
|
++this.cookTime;
|
||||||
if (this.cookTime == this.cookTimeTotal) {
|
if (this.cookTime == this.cookTimeTotal) {
|
||||||
@@ -179,6 +246,7 @@
|
@@ -179,11 +246,13 @@
|
||||||
} else {
|
} else {
|
||||||
this.cookTime = 0;
|
this.cookTime = 0;
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flag != this.isBurning()) {
|
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 {
|
} else {
|
||||||
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
|
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
|
||||||
|
|
||||||
|
@ -148,7 +154,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,11 +280,38 @@
|
@@ -211,11 +281,38 @@
|
||||||
if (this.canBurn()) {
|
if (this.canBurn()) {
|
||||||
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
|
ItemStack itemstack = RecipesFurnace.getInstance().getResult(this.items[0]);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue