Skip to content

Commit

Permalink
Update to 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
olijeffers0n committed Sep 19, 2022
1 parent 56a2499 commit f6570f3
Show file tree
Hide file tree
Showing 16 changed files with 90 additions and 41 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ A simple and intuitive 1.8-1.19 A* pathfinding API for Spigot & Paper plugins
<dependency>
<groupId>com.github.olijeffers0n.PatheticAPI</groupId>
<artifactId>pathetic-mapping</artifactId>
<version>1.0.3-PRE</version> <!-- 1.0.3-PRE or higher. Below wont work -->
<version>1.0.4-PRE</version> <!-- 1.0.4-PRE or higher. Below wont work -->
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions pathetic-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>

<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
2 changes: 1 addition & 1 deletion pathetic-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-mapping</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
</dependency>
</dependencies>
</project>
6 changes: 3 additions & 3 deletions pathetic-legacy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>

<artifactId>pathetic-legacy</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down Expand Up @@ -43,7 +43,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
6 changes: 3 additions & 3 deletions pathetic-mapping/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>pathetic-mapping</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-model</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

Expand Down
10 changes: 5 additions & 5 deletions pathetic-model/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>

<artifactId>pathetic-model</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down Expand Up @@ -61,21 +61,21 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-legacy</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-nms</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public boolean hasReachedEnd() {

private double getDistanceKey() {

PathVector a = this.location.toVector();
PathVector b = this.start.toVector();
PathVector c = this.target.toVector();
PathVector a = this.location.toVector();
double v = a.subtract(b).getCrossProduct(c.subtract(b)).length() / c.subtract(b).length();

return this.location.octileDistance(target) * (v*0.00002) + (0.01*this.target.distance(this.location));
Expand Down
20 changes: 10 additions & 10 deletions pathetic-nms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>pathetic-nms</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand All @@ -23,56 +23,56 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_19</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_18</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_17</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_16</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_15</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_12</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>v1_8</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
11 changes: 9 additions & 2 deletions pathetic-nms/v1_12/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,6 +18,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/nms/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
Expand All @@ -29,7 +36,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
11 changes: 9 additions & 2 deletions pathetic-nms/v1_15/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,6 +18,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/nms/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
Expand All @@ -29,7 +36,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
11 changes: 9 additions & 2 deletions pathetic-nms/v1_16/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,6 +18,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/nms/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
Expand All @@ -29,7 +36,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
11 changes: 9 additions & 2 deletions pathetic-nms/v1_17/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,6 +18,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/nms/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
Expand All @@ -29,7 +36,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
11 changes: 9 additions & 2 deletions pathetic-nms/v1_18/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>pathetic-main</artifactId>
<groupId>xyz.ollieee</groupId>
<version>1.0.3</version>
<version>1.0.4</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
Expand All @@ -18,6 +18,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<repository>
<id>codemc-repo</id>
<url>https://repo.codemc.org/repository/nms/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
Expand All @@ -29,7 +36,7 @@
<dependency>
<groupId>xyz.ollieee</groupId>
<artifactId>pathetic-api</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Loading

0 comments on commit f6570f3

Please sign in to comment.