@@ -51,14 +51,14 @@
|
||||
@@ -219,7 +253,7 @@
|
||||
}
|
||||
|
||||
public void Y_() {
|
||||
public void tick() {
|
||||
- boolean flag = this.isBurning();
|
||||
+ boolean flag = this.getBlock().get(BlockFurnace.LIT); // CraftBukkit - SPIGOT-844 - Check if furnace block is lit using the block instead of burn time
|
||||
boolean flag1 = false;
|
||||
|
||||
if (this.isBurning()) {
|
||||
@@ -237,9 +271,20 @@
|
||||
IRecipe irecipe = this.world.E().b(this, this.world);
|
||||
IRecipe irecipe = this.world.getCraftingManager().b(this, this.world);
|
||||
|
||||
if (!this.isBurning() && this.canBurn(irecipe)) {
|
||||
- this.burnTime = fuelTime(itemstack);
|
||||
@@ -92,8 +92,8 @@
|
||||
}
|
||||
|
||||
private int s() {
|
||||
- FurnaceRecipe furnacerecipe = (FurnaceRecipe) this.world.E().b(this, this.world);
|
||||
+ FurnaceRecipe furnacerecipe = (this.hasWorld()) ? (FurnaceRecipe) this.world.E().b(this, this.world) : null; // CraftBukkit - SPIGOT-4302
|
||||
- FurnaceRecipe furnacerecipe = (FurnaceRecipe) this.world.getCraftingManager().b(this, this.world);
|
||||
+ FurnaceRecipe furnacerecipe = (this.hasWorld()) ? (FurnaceRecipe) this.world.getCraftingManager().b(this, this.world) : null; // CraftBukkit - SPIGOT-4302
|
||||
|
||||
return furnacerecipe != null ? furnacerecipe.h() : 200;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user