forked from GeyserMC/Geyser
Allow for newest ViaVersion to work with Geyser (#805)
* Allow for newest ViaVersion to work with Geyser Most users should now just not use 2.2.3. * Update ViaVersion dependency
This commit is contained in:
parent
d0c95d3969
commit
c1c2e3baa4
2 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>us.myles</groupId>
|
<groupId>us.myles</groupId>
|
||||||
<artifactId>viaversion</artifactId>
|
<artifactId>viaversion</artifactId>
|
||||||
<version>3.0.0-SNAPSHOT</version>
|
<version>3.0.1</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
|
@ -110,8 +110,8 @@ public class GeyserBukkitPlugin extends JavaPlugin implements GeyserBootstrap {
|
||||||
if (Bukkit.getPluginManager().getPlugin("ViaVersion") != null) {
|
if (Bukkit.getPluginManager().getPlugin("ViaVersion") != null) {
|
||||||
// TODO: Update when ViaVersion updates
|
// TODO: Update when ViaVersion updates
|
||||||
// API changes between 2.2.3 and 3.0.0-SNAPSHOT require this check
|
// API changes between 2.2.3 and 3.0.0-SNAPSHOT require this check
|
||||||
if (!Via.getAPI().getVersion().equals("3.0.0-SNAPSHOT") && isLegacy) {
|
if (Via.getAPI().getVersion().contains("2.2.3") && isLegacy) {
|
||||||
geyserLogger.info("ViaVersion detected but not ViaVersion-ABSTRACTION. Please update your ViaVersion plugin for compatibility with Geyser.");
|
geyserLogger.info("ViaVersion detected but not the newest version of ViaVersion. Please update your ViaVersion plugin for compatibility with Geyser.");
|
||||||
} else {
|
} else {
|
||||||
isViaVersion = true;
|
isViaVersion = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue