mirror of
https://github.com/PaperMC/Velocity.git
synced 2025-01-30 14:59:39 +08:00
Relax GameProfileRequestEvent#setGameProfile to allow faking even in online-mode
This commit is contained in:
parent
d0cbcf65e9
commit
24c9fc0ef1
@ -60,13 +60,11 @@ public final class GameProfileRequestEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the game profile to use for this connection. It is invalid to use this method on an
|
* Sets the game profile to use for this connection.
|
||||||
* online-mode connection.
|
|
||||||
*
|
*
|
||||||
* @param gameProfile the profile for this connection, {@code null} uses the original profile
|
* @param gameProfile the profile for this connection, {@code null} uses the original profile
|
||||||
*/
|
*/
|
||||||
public void setGameProfile(@Nullable GameProfile gameProfile) {
|
public void setGameProfile(@Nullable GameProfile gameProfile) {
|
||||||
Preconditions.checkState(!onlineMode, "Profiles can not be faked in online mode!");
|
|
||||||
this.gameProfile = gameProfile;
|
this.gameProfile = gameProfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user