mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Remove FireBlast Fire Correctly
This commit is contained in:
parent
fbbbe3346a
commit
6bf6dd4868
2 changed files with 7 additions and 1 deletions
|
@ -223,7 +223,9 @@ public class FireBlast extends CoreAbility {
|
|||
private void ignite(Location location) {
|
||||
for (Block block : GeneralMethods.getBlocksAroundPoint(location, affectingradius)) {
|
||||
if (FireStream.isIgnitable(player, block) && !safe.contains(block)) {
|
||||
new Plantbending(block);
|
||||
if (WaterMethods.isPlantbendable(block)) {
|
||||
new Plantbending(block);
|
||||
}
|
||||
block.setType(Material.FIRE);
|
||||
if (dissipate) {
|
||||
FireStream.ignitedblocks.put(block, player);
|
||||
|
|
|
@ -307,6 +307,10 @@ public class WaterMethods {
|
|||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isPlantbendable(Block block) {
|
||||
return WaterMethods.isPlantbendable(block, false);
|
||||
}
|
||||
|
||||
public static void playFocusWaterEffect(Block block) {
|
||||
block.getWorld().playEffect(block.getLocation(), Effect.SMOKE, 4, 20);
|
||||
|
|
Loading…
Reference in a new issue