From ad1e24084dc3d4783aed71f359fac649275aea63 Mon Sep 17 00:00:00 2001 From: Luck Date: Wed, 7 Apr 2021 18:29:53 +0100 Subject: Sponge8 platform name should just be 'Sponge' --- .../src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'spark-sponge8/src') 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 -- cgit