Bladeren bron

fixed island border being static

mastercake10 6 jaren geleden
bovenliggende
commit
78f3226557
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      pom.xml
  2. 1 1
      src/xyz/spaceio/hooks/HookSkyblockEarth.java

+ 1 - 1
pom.xml

@@ -88,7 +88,7 @@
 		<dependency>
 			<groupId>me.goodandevil</groupId>
 			<artifactId>skyblockearth</artifactId>
-			<version>11-SNAPSHOT</version>
+			<version>17-SNAPSHOT</version>
 			<scope>provided</scope>
 		</dependency>
 		<!--SpaceIO Metrics -->

+ 1 - 1
src/xyz/spaceio/hooks/HookSkyblockEarth.java

@@ -37,7 +37,7 @@ public class HookSkyblockEarth implements SkyblockAPIHook {
 
 		api.getIslands().forEach((k, v) -> {
 			Arrays.asList(World.values()).forEach(world -> {
-				if (LocationUtil.isLocationAtLocationRadius(loc, v.getLocation(world, Environment.Island), 85)) {
+				if (LocationUtil.isLocationAtLocationRadius(loc, v.getLocation(world, Environment.Island), v.getRadius())) {
 					owner[0] = k;
 				}
 			});