summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorEvilSeph <evilseph@unaligned.org>2011-06-20 01:40:11 -0400
committerEvilSeph <evilseph@unaligned.org>2011-06-20 01:40:11 -0400
commit5335508c2e17323fc3141f46cc86c2899f748e08 (patch)
tree0729067710ca001fbbd1ef3d68e7b21ca36803d7 /src/main/java/net/minecraft/server
parent918f488d233bc602b97eb51bd5f59a9c91c4624b (diff)
downloadcraftbukkit-5335508c2e17323fc3141f46cc86c2899f748e08.tar
craftbukkit-5335508c2e17323fc3141f46cc86c2899f748e08.tar.gz
craftbukkit-5335508c2e17323fc3141f46cc86c2899f748e08.tar.lz
craftbukkit-5335508c2e17323fc3141f46cc86c2899f748e08.tar.xz
craftbukkit-5335508c2e17323fc3141f46cc86c2899f748e08.zip
Possible fix for furnaces leaving items behind.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/TileEntityFurnace.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityFurnace.java b/src/main/java/net/minecraft/server/TileEntityFurnace.java
index 63d1f76a..4ca95e83 100644
--- a/src/main/java/net/minecraft/server/TileEntityFurnace.java
+++ b/src/main/java/net/minecraft/server/TileEntityFurnace.java
@@ -121,6 +121,19 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
this.lastTick = currentTick;
// CraftBukkit end
+ if (this.f() && this.h()) {
+ // CraftBukkit start -- handle multiple elapsed ticks
+ this.cookTime += elapsedTicks;
+ if (this.cookTime >= 200) {
+ this.cookTime %= 200;
+ // CraftBukkit end
+ this.g();
+ flag1 = true;
+ }
+ } else {
+ this.cookTime = 0;
+ }
+
if (this.burnTime > 0) {
this.burnTime -= elapsedTicks; // CraftBukkit
}
@@ -153,19 +166,6 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
}
}
- if (this.f() && this.h()) {
- // CraftBukkit start -- handle multiple elapsed ticks
- this.cookTime += elapsedTicks;
- if (this.cookTime >= 200) {
- this.cookTime %= 200;
- // CraftBukkit end
- this.g();
- flag1 = true;
- }
- } else {
- this.cookTime = 0;
- }
-
if (flag != this.burnTime > 0) {
flag1 = true;
BlockFurnace.a(this.burnTime > 0, this.world, this.e, this.f, this.g);