Removed LEGACY_IRON_FENCE

This commit is contained in:
Zeshan Aslam 2019-02-07 19:58:54 -05:00
parent 2b54013808
commit 014352e730
3 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
name: ActionHealth
main: com.zeshanaslam.actionhealth.Main
version: 3.2.7
version: 3.2.8
softdepend: [PlaceholderAPI, MVdWPlaceholderAPI, WorldGuard]
commands:
Actionhealth:

View File

@ -236,7 +236,7 @@ public class TargetHelper {
Location temp = loc1.clone();
for (int i = 0; i < steps; i++) {
temp.add(slope);
if (temp.getBlock().getType().isSolid() && temp.getBlock().getType() != Material.LEGACY_IRON_FENCE && !temp.getBlock().getType().toString().contains("GLASS")) {
if (temp.getBlock().getType().isSolid() && !temp.getBlock().getType().toString().contains("FENCE") && !temp.getBlock().getType().toString().contains("GLASS")) {
return true;
}
}