diff options
Diffstat (limited to 'spark-sponge8/src/main/java/me/lucko/spark')
-rw-r--r-- | spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java | 9 |
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 |