mirror of
https://github.com/DiscordSRV/Ascension.git
synced 2024-12-26 17:18:29 +01:00
Fix legacy advancement nms split including CraftServer class name
This commit is contained in:
parent
4768bef1a1
commit
3906be9c2f
@ -46,7 +46,7 @@ public class BukkitLegacyAdvancementListener extends AbstractBukkitAwardListener
|
||||
|
||||
NMS nms = null;
|
||||
try {
|
||||
String nmsVersion = server.getClass().getName().split("\\.", 4)[3];
|
||||
String nmsVersion = server.getClass().getName().split("\\.")[3];
|
||||
if ((version.startsWith("1.19") && !version.matches("1.19.[1-3].*"))
|
||||
|| version.startsWith("1.2")) {
|
||||
// 1.19.4+
|
||||
|
Loading…
Reference in New Issue
Block a user