Skip to content

Commit 2141abf

Browse files
committed
Fix issue with uuids
1 parent e222d13 commit 2141abf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/net/modfest/rolesync/platform/SyncedRoleLookup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package net.modfest.rolesync.platform;
22

3+
import com.mojang.util.UndashedUuid;
34
import dev.gegy.roles.api.PlayerRolesApi;
45
import dev.gegy.roles.api.Role;
56
import net.minecraft.entity.player.PlayerEntity;
@@ -65,7 +66,7 @@ public void onDataUpdate(Collection<UserData> newData) {
6566
p.getLeft().minecraft_accounts()
6667
.stream().map(uuidStr -> {
6768
try {
68-
return UUID.fromString(uuidStr);
69+
return UndashedUuid.fromStringLenient(uuidStr);
6970
} catch (IllegalArgumentException ignored) {
7071
return null;
7172
}

0 commit comments

Comments
 (0)