Add Spigot 1.21 world adapter

This commit is contained in:
onebeastchris 2024-06-15 18:39:09 +02:00
parent be83fe7220
commit b1d319bb7e
2 changed files with 2 additions and 1 deletions

View file

@ -251,6 +251,7 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
SpigotAdapters.registerWorldAdapter(nmsVersion); SpigotAdapters.registerWorldAdapter(nmsVersion);
geyserLogger.debug("Using spigot NMS adapter for nms version: " + nmsVersion); geyserLogger.debug("Using spigot NMS adapter for nms version: " + nmsVersion);
} catch (Exception e) { // Likely running on Paper 1.20.5+ } catch (Exception e) { // Likely running on Paper 1.20.5+
geyserLogger.debug("Unable to find spigot world manager: " + e.getMessage());
//noinspection deprecation //noinspection deprecation
int protocolVersion = Bukkit.getUnsafe().getProtocolVersion(); int protocolVersion = Bukkit.getUnsafe().getProtocolVersion();
PaperAdapters.registerClosestWorldAdapter(protocolVersion); PaperAdapters.registerClosestWorldAdapter(protocolVersion);

View file

@ -23,7 +23,7 @@ jline = "3.21.0"
terminalconsoleappender = "1.2.0" terminalconsoleappender = "1.2.0"
folia = "1.19.4-R0.1-SNAPSHOT" folia = "1.19.4-R0.1-SNAPSHOT"
viaversion = "4.9.2" viaversion = "4.9.2"
adapters = "1.12-SNAPSHOT" adapters = "1.13-SNAPSHOT"
commodore = "2.2" commodore = "2.2"
bungeecord = "a7c6ede" bungeecord = "a7c6ede"
velocity = "3.3.0-SNAPSHOT" velocity = "3.3.0-SNAPSHOT"