mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 03:30:10 +00:00
Fireblast now ignites furnace blocks.
Fireblast can be used to add burning ticks to a furnace.
This commit is contained in:
parent
c5cbe8b92d
commit
e66aa4224a
1 changed files with 4 additions and 3 deletions
|
@ -126,9 +126,10 @@ public class FireBlast {
|
||||||
|
|
||||||
if (Methods.isSolid(block) || block.isLiquid()) {
|
if (Methods.isSolid(block) || block.isLiquid()) {
|
||||||
if (block.getType() == Material.FURNACE && canPowerFurnace) {
|
if (block.getType() == Material.FURNACE && canPowerFurnace) {
|
||||||
Furnace f = ((Furnace) block);
|
Furnace furnace = (Furnace) block.getState();
|
||||||
f.setBurnTime((short) 800);
|
furnace.setBurnTime((short) 800);
|
||||||
f.setCookTime((short) 800);
|
furnace.setCookTime((short) 800);
|
||||||
|
furnace.update();
|
||||||
} else if (FireStream.isIgnitable(player, block.getRelative(BlockFace.UP))) {
|
} else if (FireStream.isIgnitable(player, block.getRelative(BlockFace.UP))) {
|
||||||
ignite(location);
|
ignite(location);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue