9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-29 03:49:15 +00:00

update sparrow util

This commit is contained in:
XiaoMoMi
2025-03-20 16:59:48 +08:00
parent f22f04a197
commit e98ee6ee87
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ public class KeyUtils {
private KeyUtils() {}
public static Key namespacedKey2Key(NamespacedKey key) {
return Key.of(key.namespace(), key.value());
return Key.of(key.getNamespace(), key.getKey());
}
public static Key adventureKey2Key(net.kyori.adventure.key.Key key) {