Skip to content

Commit

Permalink
support vanilla in online mode with new chat signings
Browse files Browse the repository at this point in the history
  • Loading branch information
Outfluencer authored Jan 23, 2024
1 parent a1cd694 commit 13b2f3f
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,14 @@ public void done(String result, Throwable error)
{
loginProfile = obj;
name = obj.getName();
uniqueId = Util.getUUID( obj.getId() );
if ( onlineMode && !bungee.config.isIpForward() )
{
// otherwise we get kicked for invalid signature on vanilla
uniqueId = UUID.nameUUIDFromBytes( ( "OfflinePlayer:" + getLoginRequest().getData() ).getBytes( StandardCharsets.UTF_8 ) );
} else
{
uniqueId = Util.getUUID( obj.getId() );
}
finish();
return;
}
Expand Down

0 comments on commit 13b2f3f

Please sign in to comment.