Fix clone return for Paper PlayerProfile (#12984)
This commit is contained in:
+1
-1
@@ -477,7 +477,7 @@ public class PaperServerListPingEvent extends ServerListPingEvent implements Can
|
||||
}
|
||||
|
||||
@Override
|
||||
public org.bukkit.profile.@NotNull PlayerProfile clone() {
|
||||
public @NotNull PlayerProfile clone() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
|
||||
@@ -243,4 +243,12 @@ public interface PlayerProfile extends org.bukkit.profile.PlayerProfile {
|
||||
default boolean hasTextures() {
|
||||
return this.hasProperty("textures");
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @return the cloned player profile.
|
||||
*/
|
||||
@Override
|
||||
PlayerProfile clone();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user