Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 04:50:06 +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.
Dieser Commit ist enthalten in:
Ursprung
68506e2a4a
Commit
7cd03e65d1
@ -147,10 +147,10 @@ public class TileEntityFurnace extends TileEntity implements IInventory {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ticksForCurrentFuel = this.fuelTime(this.items[1]);
|
this.ticksForCurrentFuel = furnaceBurnEvent.getBurnTime();
|
||||||
this.burnTime += this.ticksForCurrentFuel;
|
this.burnTime += this.ticksForCurrentFuel;
|
||||||
|
if (this.burnTime > 0 && furnaceBurnEvent.isBurning()) {
|
||||||
// CraftBukkit end
|
// CraftBukkit end
|
||||||
if (this.burnTime > 0) {
|
|
||||||
flag1 = true;
|
flag1 = true;
|
||||||
if (this.items[1] != null) {
|
if (this.items[1] != null) {
|
||||||
--this.items[1].count;
|
--this.items[1].count;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren