From d0063e9907f41425e71f2a21a3c77c9107e3b134 Mon Sep 17 00:00:00 2001 From: Callum Seabrook Date: Mon, 3 May 2021 10:52:25 +0100 Subject: Fix Sponge8 compile (#114) --- .../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/src/main/java/me/lucko/spark/sponge') 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 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 -- cgit