mirror of
https://github.com/darksaid98/nightcore-spigot.git
synced 2026-12-02 22:17:42 +00:00
v2.7.6.1
- Fixed compatibility for MC <= 1.21.4
This commit is contained in:
1 parent
12a85ce198
commit
753ca2dfc4
4 files changed
+16
-5
No files matched your search
@@ -157,7 +157,7 @@ public class BukkitThing {
|
||||
public static <T extends Keyed> List<NamespacedKey> getKeys(@NotNull RegistryType<T> registryType) {
|
||||
var registry = registryType.getRegistry();
|
||||
|
||||
return Version.isPaper() ? registry.keyStream().toList() : registry.stream().map(Keyed::getKey).toList();
|
||||
return Version.isPaper() && Version.isAtLeast(Version.MC_1_21_5) ? registry.keyStream().toList() : registry.stream().map(Keyed::getKey).toList();
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in new issue
Block a user