mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
Fixed Healing waters & /b d Combustion issue
This commit is contained in:
parent
cdc9f7ad80
commit
bf59be3d78
3 changed files with 4 additions and 2 deletions
|
@ -892,6 +892,7 @@ public class Commands {
|
|||
s.sendMessage(GeneralMethods.getSubBendingColor(Element.Fire) + st);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Arrays.asList(combustionaliases).contains(args[1])) {
|
||||
|
@ -905,6 +906,7 @@ public class Commands {
|
|||
s.sendMessage(GeneralMethods.getSubBendingColor(Element.Fire) + st);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Arrays.asList(chialiases).contains(args[1])) {
|
||||
|
|
|
@ -1194,8 +1194,7 @@ public class GeneralMethods {
|
|||
for (double i = 0; i <= max; i++) {
|
||||
loc = location1.clone().add(direction.clone().multiply(i));
|
||||
Material type = loc.getBlock().getType();
|
||||
if (type != Material.AIR
|
||||
&& !Arrays.asList(EarthMethods.getTransparentEarthbending()).contains(type.getId()))
|
||||
if (type != Material.AIR && !(Arrays.asList(EarthMethods.getTransparentEarthbending()).contains(type.getId()) || WaterMethods.isWater(loc.getBlock())))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.projectkorra.ProjectKorra.waterbending;
|
|||
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Server;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.entity.Entity;
|
||||
|
|
Loading…
Reference in a new issue