mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
SPIGOT-7886: Fix mistake in AttributeModifier UUID shim
By: md_5 <git@md-5.net>
This commit is contained in:
parent
8d803e683c
commit
b5a8d2cf35
@ -1,6 +1,7 @@
|
||||
package org.bukkit.attribute;
|
||||
|
||||
import com.google.common.base.Preconditions;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.HashMap;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
@ -65,7 +66,7 @@ public class AttributeModifier implements ConfigurationSerializable, Keyed {
|
||||
@NotNull
|
||||
@Deprecated
|
||||
public UUID getUniqueId() {
|
||||
return UUID.fromString(getKey().toString());
|
||||
return UUID.nameUUIDFromBytes(getKey().toString().getBytes(StandardCharsets.UTF_8));
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
Loading…
Reference in New Issue
Block a user