diff --git a/plugin.yml b/plugin.yml index 7dc265e..7f38aef 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ name: ActionHealth main: com.zeshanaslam.actionhealth.Main -version: 3.4.2 +version: 3.4.3 softdepend: [PlaceholderAPI, MVdWPlaceholderAPI, WorldGuard, mcMMO, MythicMobs, LangUtils] commands: Actionhealth: diff --git a/src/com/zeshanaslam/actionhealth/support/WorldGuardAPI.java b/src/com/zeshanaslam/actionhealth/support/WorldGuardAPI.java index bed930c..f90c078 100644 --- a/src/com/zeshanaslam/actionhealth/support/WorldGuardAPI.java +++ b/src/com/zeshanaslam/actionhealth/support/WorldGuardAPI.java @@ -72,7 +72,6 @@ public class WorldGuardAPI { } } - // Ugh guys, API much? try { Class vectorClass = Class.forName("com.sk89q.worldedit.Vector"); vectorConstructor = vectorClass.getConstructor(Double.TYPE, Double.TYPE, Double.TYPE); @@ -119,9 +118,7 @@ public class WorldGuardAPI { private ApplicableRegionSet getRegionSet(Location location) { RegionManager regionManager = getRegionManager(location.getWorld()); if (regionManager == null) return null; - // The Location version of this method is gone in 7.0 - // Oh and then they also randomly changed the Vector class at some point without even a version bump. - // So awesome! + try { Object vector = vectorConstructorAsAMethodBecauseWhyNot == null ? vectorConstructor.newInstance(location.getX(), location.getY(), location.getZ()) diff --git a/src/com/zeshanaslam/actionhealth/utils/TargetHelper.java b/src/com/zeshanaslam/actionhealth/utils/TargetHelper.java index e710b61..5feb80e 100644 --- a/src/com/zeshanaslam/actionhealth/utils/TargetHelper.java +++ b/src/com/zeshanaslam/actionhealth/utils/TargetHelper.java @@ -73,7 +73,6 @@ public class TargetHelper { double sinSquared = 1 - cosSquared; double dSquared = rLengthSq * sinSquared; - System.out.println(dSquared); // If close enough to vision line, return the entity if (dSquared < tolerance) targets.add((LivingEntity) entity); }