Removed logging

This commit is contained in:
Zeshan Aslam 2020-04-05 12:03:09 -04:00
parent 8b3f5e4e6a
commit 12ef53662c
3 changed files with 2 additions and 6 deletions

View File

@ -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:

View File

@ -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())

View File

@ -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);
}