Skip to content

Commit

Permalink
Remove usage of GeyserConnector
Browse files Browse the repository at this point in the history
  • Loading branch information
Konicai committed May 23, 2023
1 parent 1af2664 commit b47abe2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
<repository>
<id>velocity</id>
<url>https://nexus.velocitypowered.com/repository/maven-public/</url>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>spigot-repo</id>
Expand All @@ -49,7 +49,7 @@
<dependency>
<groupId>com.velocitypowered</groupId>
<artifactId>velocity-api</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

import com.moandjiezana.toml.Toml;

import org.geysermc.connector.GeyserConnector;
import org.geysermc.geyser.GeyserImpl;
import org.slf4j.Logger;

import com.velocitypowered.api.event.PostOrder;
Expand Down Expand Up @@ -100,8 +100,8 @@ public void onProxyInitialization(ProxyInitializeEvent event) {

@Subscribe(order = PostOrder.LAST)
public void onShutdown(ProxyShutdownEvent event) {
// This test isn't ideal but it'll work for now
if (!GeyserConnector.getInstance().getBedrockServer().isClosed()) {
// todo: listen for GeyserShutdownEvent instead
if (!GeyserImpl.getInstance().isShuttingDown()) {
throw new UnsupportedOperationException("Cannot shutdown GeyserUpdater before Geyser has shutdown! No updates will be applied.");
}
try {
Expand Down

0 comments on commit b47abe2

Please sign in to comment.