diff options
author | Luck <git@lucko.me> | 2021-09-05 17:19:29 +0100 |
---|---|---|
committer | Luck <git@lucko.me> | 2021-09-05 17:26:24 +0100 |
commit | d4082c4d58846346a20e70d1f0ebda500de4152e (patch) | |
tree | 6501142bf0c410f7b111ae0ada9def18e63a5189 /spark-sponge8 | |
parent | 5e90d77503e0b5f9ef8cde2f44af65f32b071137 (diff) | |
download | spark-d4082c4d58846346a20e70d1f0ebda500de4152e.tar.gz spark-d4082c4d58846346a20e70d1f0ebda500de4152e.tar.bz2 spark-d4082c4d58846346a20e70d1f0ebda500de4152e.zip |
Fix sponge8 compile
Diffstat (limited to 'spark-sponge8')
-rw-r--r-- | spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8PlatformInfo.java | 2 | ||||
-rw-r--r-- | spark-sponge8/src/main/java/me/lucko/spark/sponge/Sponge8SparkPlugin.java | 4 |
2 files changed, 3 insertions, 3 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 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 |