From d4082c4d58846346a20e70d1f0ebda500de4152e Mon Sep 17 00:00:00 2001 From: Luck Date: Sun, 5 Sep 2021 17:19:29 +0100 Subject: Fix sponge8 compile --- .../src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java | 2 +- .../src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'spark-sponge8') 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 51805b3..c2a136a 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 @@ -44,7 +44,7 @@ public class Sponge8PlatformInfo extends AbstractPlatformInfo { @Override public String getVersion() { - return this.game.platform().container(Platform.Component.IMPLEMENTATION).metadata().version(); + return this.game.platform().container(Platform.Component.IMPLEMENTATION).metadata().version().toString(); } @Override diff --git a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java index f1a54b6..154015a 100644 --- a/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java +++ b/spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java @@ -46,7 +46,7 @@ import org.spongepowered.api.event.lifecycle.RegisterCommandEvent; import org.spongepowered.api.event.lifecycle.StartedEngineEvent; import org.spongepowered.api.event.lifecycle.StoppingEngineEvent; import org.spongepowered.plugin.PluginContainer; -import org.spongepowered.plugin.jvm.Plugin; +import org.spongepowered.plugin.builtin.jvm.Plugin; import java.nio.file.Path; import java.util.List; @@ -93,7 +93,7 @@ public class Sponge8SparkPlugin implements SparkPlugin { @Override public String getVersion() { - return this.pluginContainer.metadata().version(); + return this.pluginContainer.metadata().version().toString(); } @Override -- cgit