1
0
mirror of https://github.com/GeyserMC/Geyser.git synced 2026-01-06 15:41:50 +00:00

Remove GeyserPluginBootstrap as it's no longer necessary

This commit is contained in:
Camotoy
2024-09-22 13:05:33 -04:00
parent 5551169c4c
commit 45f8baf49e
11 changed files with 27 additions and 61 deletions

View File

@@ -32,9 +32,9 @@ import net.minecraft.server.MinecraftServer;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.geysermc.geyser.FloodgateKeyLoader;
import org.geysermc.geyser.GeyserBootstrap;
import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.GeyserLogger;
import org.geysermc.geyser.GeyserPluginBootstrap;
import org.geysermc.geyser.api.util.PlatformType;
import org.geysermc.geyser.command.CommandRegistry;
import org.geysermc.geyser.configuration.ConfigLoader;
@@ -52,7 +52,7 @@ import java.net.SocketAddress;
import java.nio.file.Path;
@RequiredArgsConstructor
public abstract class GeyserModBootstrap implements GeyserPluginBootstrap {
public abstract class GeyserModBootstrap implements GeyserBootstrap {
@Getter
private static GeyserModBootstrap instance;

View File

@@ -38,7 +38,6 @@ import net.minecraft.server.network.ServerConnectionListener;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.geysermc.geyser.GeyserBootstrap;
import org.geysermc.geyser.GeyserImpl;
import org.geysermc.geyser.GeyserPluginBootstrap;
import org.geysermc.geyser.network.netty.GeyserInjector;
import org.geysermc.geyser.network.netty.LocalServerChannelWrapper;
import org.geysermc.geyser.platform.mod.platform.GeyserModPlatform;
@@ -64,7 +63,7 @@ public class GeyserModInjector extends GeyserInjector {
}
@Override
protected void initializeLocalChannel0(GeyserPluginBootstrap bootstrap) throws Exception {
protected void initializeLocalChannel0(GeyserBootstrap bootstrap) throws Exception {
ServerConnectionListener connection = this.server.getConnection();
// Find the channel that Minecraft uses to listen to connections