diff options
author | EvilSeph <evilseph@unaligned.org> | 2011-06-30 23:05:20 -0400 |
---|---|---|
committer | EvilSeph <evilseph@unaligned.org> | 2011-07-01 18:55:40 -0400 |
commit | 7cd03e65d11bf5dd79f9d56b89f7de220238205e (patch) | |
tree | 93ac86a67dd4c9ed32403f4f44876ce1291f4f05 /src/main/java/net/minecraft/server/TileEntityFurnace.java | |
parent | 68506e2a4a8cec4b2812f5e65ad3f7b5374e8498 (diff) | |
download | craftbukkit-7cd03e65d11bf5dd79f9d56b89f7de220238205e.tar craftbukkit-7cd03e65d11bf5dd79f9d56b89f7de220238205e.tar.gz craftbukkit-7cd03e65d11bf5dd79f9d56b89f7de220238205e.tar.lz craftbukkit-7cd03e65d11bf5dd79f9d56b89f7de220238205e.tar.xz craftbukkit-7cd03e65d11bf5dd79f9d56b89f7de220238205e.zip |
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.
Diffstat (limited to 'src/main/java/net/minecraft/server/TileEntityFurnace.java')
-rw-r--r-- | src/main/java/net/minecraft/server/TileEntityFurnace.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/TileEntityFurnace.java b/src/main/java/net/minecraft/server/TileEntityFurnace.java index 85fa9a2a..a3969e02 100644 --- a/src/main/java/net/minecraft/server/TileEntityFurnace.java +++ b/src/main/java/net/minecraft/server/TileEntityFurnace.java @@ -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; |