mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
FireBlast ignites furnaces.
Added test code to ignite furnaces with FireBlast.
This commit is contained in:
parent
3b6f775ccd
commit
c5cbe8b92d
1 changed files with 4 additions and 1 deletions
|
@ -9,6 +9,7 @@ import org.bukkit.Location;
|
|||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.BlockFace;
|
||||
import org.bukkit.block.Furnace;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.entity.Player;
|
||||
|
@ -125,7 +126,9 @@ public class FireBlast {
|
|||
|
||||
if (Methods.isSolid(block) || block.isLiquid()) {
|
||||
if (block.getType() == Material.FURNACE && canPowerFurnace) {
|
||||
|
||||
Furnace f = ((Furnace) block);
|
||||
f.setBurnTime((short) 800);
|
||||
f.setCookTime((short) 800);
|
||||
} else if (FireStream.isIgnitable(player, block.getRelative(BlockFace.UP))) {
|
||||
ignite(location);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue