mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 18:45:34 +01:00
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:
parent
ea10cc2e3f
commit
842841cd74
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user