aboutsummaryrefslogtreecommitdiff
path: root/spark-sponge8/src
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2021-04-07 18:29:53 +0100
committerLuck <git@lucko.me>2021-04-07 18:29:53 +0100
commitad1e24084dc3d4783aed71f359fac649275aea63 (patch)
tree94ca4044d0c0812a3fcbaf41f7c77398c843f265 /spark-sponge8/src
parent9228cf8b55dc34a5f49bddfe4637fbd4dd7fecb5 (diff)
downloadspark-ad1e24084dc3d4783aed71f359fac649275aea63.tar.gz
spark-ad1e24084dc3d4783aed71f359fac649275aea63.tar.bz2
spark-ad1e24084dc3d4783aed71f359fac649275aea63.zip
Sponge8 platform name should just be 'Sponge'
Diffstat (limited to 'spark-sponge8/src')
-rw-r--r--spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java
index 87f5b17..fecfb5e 100644
--- a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java
+++ b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java
@@ -24,7 +24,6 @@ import me.lucko.spark.common.platform.AbstractPlatformInfo;
import org.spongepowered.api.Game;
import org.spongepowered.api.Platform;
-import org.spongepowered.plugin.metadata.PluginMetadata;
public class Sponge8PlatformInfo extends AbstractPlatformInfo {
private final Game game;
@@ -40,16 +39,12 @@ public class Sponge8PlatformInfo extends AbstractPlatformInfo {
@Override
public String getName() {
- return getMetadata().getName().orElse(getMetadata().getId());
+ return "Sponge";
}
@Override
public String getVersion() {
- return getMetadata().getVersion();
- }
-
- private PluginMetadata getMetadata() {
- return this.game.platform().container(Platform.Component.IMPLEMENTATION).getMetadata();
+ return this.game.platform().container(Platform.Component.IMPLEMENTATION).getMetadata().getVersion();
}
@Override