Fixes NMS for Spigot 1.19.0 / 1.19.1 / 1.19.2 detection

Purpur-Spigot and plain Spigot do not end with `.0`. Not sure if Paper does or Spigot 1.19.1 does?

I just added the plain `1.19` check.
This is not an issue in the Core v3 branch as the check is more stable there.
This commit is contained in:
Christian Koop 2022-12-30 20:09:01 +01:00
parent ea10cc2e3f
commit 842841cd74
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -129,7 +129,7 @@ public class NmsManager {
world = new com.songoda.core.nms.v1_18_R2.world.WorldCoreImpl();
break;
case "v1_19_R1":
if (bukkitVersion.endsWith(".0")) {
if (bukkitVersion.endsWith(".0") || bukkitVersion.equals("1.19")) {
player = new com.songoda.core.nms.v1_19_R1.entity.NMSPlayerImpl();
anvil = new com.songoda.core.nms.v1_19_R1.anvil.AnvilCore();
nbt = new com.songoda.core.nms.v1_19_R1.nbt.NBTCoreImpl();