mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-02 04:56:50 +01:00
Improved FurnaceBurn event.
- Added the ability to set the burn time of the fuel. - Added the ability to set if a fuel should burn or not.
This commit is contained in:
parent
68506e2a4a
commit
7cd03e65d1
1 changed files with 3 additions and 3 deletions
|
@ -147,10 +147,10 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
|
|||
return;
|
||||
}
|
||||
|
||||
this.ticksForCurrentFuel = this.fuelTime(this.items[1]);
|
||||
this.ticksForCurrentFuel = furnaceBurnEvent.getBurnTime();
|
||||
this.burnTime += this.ticksForCurrentFuel;
|
||||
// CraftBukkit end
|
||||
if (this.burnTime > 0) {
|
||||
if (this.burnTime > 0 && furnaceBurnEvent.isBurning()) {
|
||||
// CraftBukkit end
|
||||
flag1 = true;
|
||||
if (this.items[1] != null) {
|
||||
--this.items[1].count;
|
||||
|
|
Loading…
Reference in a new issue