Explorar el Código

fixed island border being static

mastercake10 hace 6 años
padre
commit
78f3226557
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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;
 				}
 			});