diff options
author | Callum Seabrook <callum.seabrook@prevarinite.com> | 2021-05-03 10:52:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 10:52:25 +0100 |
commit | d0063e9907f41425e71f2a21a3c77c9107e3b134 (patch) | |
tree | f4086e9e1cb031dc03db5e2eea51f937163616e2 /spark-sponge8/src/main/java/me/lucko/spark | |
parent | ea84251f8dd55c5bbf8ec0774f5812cda26a9a32 (diff) | |
download | spark-d0063e9907f41425e71f2a21a3c77c9107e3b134.tar.gz spark-d0063e9907f41425e71f2a21a3c77c9107e3b134.tar.bz2 spark-d0063e9907f41425e71f2a21a3c77c9107e3b134.zip |
Fix Sponge8 compile (#114)
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 | 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 fecfb5e..51805b3 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).getMetadata().getVersion(); + return this.game.platform().container(Platform.Component.IMPLEMENTATION).metadata().version(); } @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 ff44c93..13c5d27 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 @@ -75,7 +75,7 @@ public class Sponge8SparkPlugin implements SparkPlugin { @Listener public void onRegisterCommands(final RegisterCommandEvent<Command.Raw> event) { - event.register(this.pluginContainer, new SparkCommand(this), this.pluginContainer.getMetadata().getId()); + event.register(this.pluginContainer, new SparkCommand(this), this.pluginContainer.metadata().id()); } @Listener @@ -91,7 +91,7 @@ public class Sponge8SparkPlugin implements SparkPlugin { @Override public String getVersion() { - return this.pluginContainer.getMetadata().getVersion(); + return this.pluginContainer.metadata().version(); } @Override |