mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 04:17:44 +01:00
Possible fix for furnaces leaving items behind.
This commit is contained in:
parent
918f488d23
commit
5335508c2e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user