Skip to content

Commit

Permalink
Fix Loenn effect detection
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie480 committed Sep 4, 2022
1 parent b81524e commit 00b7569
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Get Maven, then run the following command at the project root:
mvn clean package
```

This will build the project to `target/update-checker-0.1.4.jar`.
This will build the project to `target/update-checker-0.1.5.jar`.

### Running the project

Expand All @@ -216,7 +216,7 @@ First, follow these steps to set it up:
Then, to run the project, browse to where the JAR is in a terminal / command prompt, then run

```
java -jar update-checker-0.1.4.jar [minutes]
java -jar update-checker-0.1.5.jar [minutes]
```
[minutes] is the wait delay in minutes between two GameBanana checks (defaults to 30). Be aware that the program makes ~13 API calls per check, and that the GameBanana API has a cap at 250 requests/hour.
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.max480.everest.updatechecker</groupId>
<artifactId>update-checker</artifactId>
<version>0.1.4</version>
<version>0.1.5</version>

<properties>
<jdk.version>1.8</jdk.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,8 @@ private void checkLoennFilesDatabase(String mod, Path modFolder, String version)

checkZipSignature(new File("mod-loennscan.zip").toPath());

// read line per line, and extract the entity ID from each line starting with entities., triggers. or effects.
Pattern regex = Pattern.compile("^(entities|triggers|effects)\\.([^.]+)\\..*$");
// read line per line, and extract the entity ID from each line starting with entities., triggers. or style.effects.
Pattern regex = Pattern.compile("^(entities|triggers|style\\.effects)\\.([^.]+)\\..*$");

String line;
while ((line = br.readLine()) != null) {
Expand All @@ -348,7 +348,7 @@ private void checkLoennFilesDatabase(String mod, Path modFolder, String version)
case "triggers":
loennTriggers.add(entityName);
break;
case "effects":
case "style.effects":
loennEffects.add(entityName);
break;
}
Expand Down

0 comments on commit 00b7569

Please sign in to comment.