diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 01b88a9..65cbef5 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,22 +4,11 @@
-
-
-
-
-
+
-
-
-
-
-
-
-
-
+
@@ -116,53 +105,55 @@
- {
- "keyToString": {
- "Downloaded.Files.Path.Enabled": "false",
- "Gradle.Build EntityLib.executor": "Run",
- "Gradle.EntityLib [build].executor": "Run",
- "Gradle.EntityLib [dependencies].executor": "Run",
- "Gradle.EntityLib [publish].executor": "Run",
- "Gradle.EntityLib [runServer] (1).executor": "Run",
- "Gradle.EntityLib [runServer].executor": "Run",
- "Gradle.EntityLib:api [build].executor": "Run",
- "Gradle.EntityLib:code-gen [:code-gen:Main.main()].executor": "Run",
- "Gradle.EntityLib:test-plugin [cleanAllRunTaskCaches].executor": "Run",
- "Gradle.EntityLib:test-plugin [cleanCustomServiceCaches].executor": "Run",
- "Gradle.EntityLib:test-plugin [cleanPaperCache].executor": "Run",
- "Gradle.EntityLib:test-plugin [cleanPaperPluginsCache].executor": "Run",
- "Gradle.EntityLib:test-plugin [publish].executor": "Run",
- "Gradle.EntityLib:test-plugin [runServer].executor": "Run",
- "Gradle.EntityLib:test-plugin [shadowJar].executor": "Run",
- "JAR Application.Unnamed.executor": "Run",
- "Repository.Attach.Annotations": "false",
- "Repository.Attach.JavaDocs": "false",
- "Repository.Attach.Sources": "false",
- "RunOnceActivity.OpenProjectViewOnStart": "true",
- "RunOnceActivity.ShowReadmeOnStart": "true",
- "WebServerToolWindowFactoryState": "false",
- "git-widget-placeholder": "feat/BuildChainRework",
- "ignore.virus.scanning.warn.message": "true",
- "jdk.selected.JAVA_MODULE": "corretto-17",
- "kotlin-language-version-configured": "true",
- "last_opened_file_path": "C:/Development/EntityLib/buildSrc/src/main/resources",
- "node.js.detected.package.eslint": "true",
- "node.js.detected.package.tslint": "true",
- "node.js.selected.package.eslint": "(autodetect)",
- "node.js.selected.package.tslint": "(autodetect)",
- "nodejs_package_manager_path": "npm",
- "project.structure.last.edited": "Project",
- "project.structure.proportion": "0.15",
- "project.structure.side.proportion": "0.2",
- "settings.editor.selected.configurable": "reference.settingsdialog.project.gradle",
- "vue.rearranger.settings.migration": "true"
+
+}]]>
@@ -177,19 +168,19 @@
-
-
+
+
-
+
@@ -200,12 +191,12 @@
false
-
+
-
+
@@ -222,109 +213,13 @@
false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- true
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- true
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- true
- false
- false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- true
- true
- false
- false
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
+
@@ -440,7 +335,7 @@
-
+
@@ -450,7 +345,15 @@
1720354581808
-
+
+
+ 1720358883608
+
+
+
+ 1720358883608
+
+
@@ -462,7 +365,8 @@
-
+
+
@@ -482,6 +386,11 @@
77
+
+ file://$PROJECT_DIR$/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java
+ 26
+
+
file://$PROJECT_DIR$/src/main/java/me/tofaa/entitylib/meta/types/DisplayMeta.java
153
diff --git a/api/src/main/java/me/tofaa/entitylib/EntityLib.java b/api/src/main/java/me/tofaa/entitylib/EntityLib.java
index 9ccda22..85d97a9 100644
--- a/api/src/main/java/me/tofaa/entitylib/EntityLib.java
+++ b/api/src/main/java/me/tofaa/entitylib/EntityLib.java
@@ -1,6 +1,5 @@
package me.tofaa.entitylib;
-import com.github.retrooper.packetevents.util.PEVersion;
import me.tofaa.entitylib.utils.ELVersion;
import me.tofaa.entitylib.utils.ELVersions;
diff --git a/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java b/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java
index 63b423c..72131c4 100644
--- a/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java
+++ b/api/src/main/java/me/tofaa/entitylib/utils/GithubUpdater.java
@@ -38,8 +38,8 @@ public final class GithubUpdater {
String response = reader.readLine();
JsonObject json = AdventureSerializer.getGsonSerializer().serializer().fromJson(response, JsonObject.class);
- if (json.has("name")) {
- return ELVersion.fromString(json.get("name").getAsString().replaceFirst("^[vV]", ""));
+ if (json.has("tag_name")) {
+ return ELVersion.fromString(json.get("tag_name").getAsString().replaceFirst("^[vV]", ""));
}
throw new IOException("Could not find name attribute in github api fetch");
}
diff --git a/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java b/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java
index 291fbf9..f5946c4 100644
--- a/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java
+++ b/test-plugin/src/main/java/me/tofaa/testentitylib/TestEntityLibPlugin.java
@@ -30,6 +30,7 @@ public class TestEntityLibPlugin extends JavaPlugin {
SpigotEntityLibPlatform platform = new SpigotEntityLibPlatform(this);
APIConfig settings = new APIConfig(PacketEvents.getAPI())
.debugMode()
+ .checkForUpdates()
.tickTickables()
.trackPlatformEntities()
.useBstats()