mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
ominous banners - this really isn't ideal
This commit is contained in:
parent
8b7b8cdffd
commit
5d3630cf23
5 changed files with 52 additions and 20 deletions
|
@ -244,8 +244,8 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
|
|||
|
||||
if (Boolean.parseBoolean(System.getProperty("Geyser.UseDirectAdapters", "true"))) {
|
||||
try {
|
||||
String name = Bukkit.getServer().getClass().getPackage().getName();
|
||||
String nmsVersion = name.substring(name.lastIndexOf('.') + 1);
|
||||
String version = Bukkit.getBukkitVersion().split("-")[0];
|
||||
String nmsVersion = "v" + version.replace(".", "_");
|
||||
SpigotAdapters.registerWorldAdapter(nmsVersion);
|
||||
if (isViaVersion && isViaVersionNeeded()) {
|
||||
this.geyserWorldManager = new GeyserSpigotLegacyNativeWorldManager(this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue