diff --git a/out/production/ActionHealth/com/zeshanaslam/actionhealth/TargetHelper.class b/out/production/ActionHealth/com/zeshanaslam/actionhealth/TargetHelper.class index c4c1fcb..05953ed 100644 Binary files a/out/production/ActionHealth/com/zeshanaslam/actionhealth/TargetHelper.class and b/out/production/ActionHealth/com/zeshanaslam/actionhealth/TargetHelper.class differ diff --git a/plugin.yml b/plugin.yml index 499f643..b20e145 100644 --- a/plugin.yml +++ b/plugin.yml @@ -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: diff --git a/src/com/zeshanaslam/actionhealth/TargetHelper.java b/src/com/zeshanaslam/actionhealth/TargetHelper.java index 81ce755..049c875 100644 --- a/src/com/zeshanaslam/actionhealth/TargetHelper.java +++ b/src/com/zeshanaslam/actionhealth/TargetHelper.java @@ -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; } }