forked from GeyserMC/Geyser
Fix offline auth bug
Handled in GeyserSession#connect
This commit is contained in:
parent
240f41ff03
commit
3e4fd618e5
1 changed files with 0 additions and 5 deletions
|
@ -40,11 +40,6 @@ public class BedrockPlayerInitializedTranslator extends PacketTranslator<SetLoca
|
||||||
if (!session.getUpstream().isInitialized()) {
|
if (!session.getUpstream().isInitialized()) {
|
||||||
session.getUpstream().setInitialized(true);
|
session.getUpstream().setInitialized(true);
|
||||||
|
|
||||||
if (!(session.getConnector().getAuthType() == AuthType.OFFLINE)) {
|
|
||||||
session.getConnector().getLogger().info("Attempting to login using offline mode... authentication is disabled.");
|
|
||||||
session.authenticate(session.getAuthData().getName());
|
|
||||||
}
|
|
||||||
|
|
||||||
for (PlayerEntity entity : session.getEntityCache().getEntitiesByType(PlayerEntity.class)) {
|
for (PlayerEntity entity : session.getEntityCache().getEntitiesByType(PlayerEntity.class)) {
|
||||||
if (!entity.isValid()) {
|
if (!entity.isValid()) {
|
||||||
// async skin loading
|
// async skin loading
|
||||||
|
|
Loading…
Reference in a new issue