mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-12 12:40:14 +02:00
Fixed legacy forwarding. Minor changes
This commit is contained in:
parent
7953244f80
commit
e42dca22ea
@ -92,7 +92,7 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {
|
||||
setAddress(split[1]);
|
||||
profile.setUuid(UuidUtil.fromString(split[2]));
|
||||
} else {
|
||||
disconnect("You've enabled player info forwarding. To join, enable it in your proxy too");
|
||||
disconnect("You've enabled player info forwarding. You need to connect with proxy");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -126,9 +126,11 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {
|
||||
return;
|
||||
}
|
||||
|
||||
if (server.getConfig().getInfoForwarding().isNone()){
|
||||
if (!server.getConfig().getInfoForwarding().isModern()){
|
||||
profile.setUsername(((PacketLoginStart) packet).getUsername());
|
||||
profile.setUuid(UuidUtil.getOfflineModeUuid(getUsername()));
|
||||
|
||||
if (profile.getUuid() == null)
|
||||
profile.setUuid(UuidUtil.getOfflineModeUuid(getUsername()));
|
||||
}
|
||||
|
||||
fireLoginSuccess();
|
||||
|
@ -21,7 +21,7 @@ dimension: THE_END
|
||||
# Spawn position in the world
|
||||
spawnPosition:
|
||||
x: 0.0
|
||||
y: 32.0
|
||||
y: 64.0
|
||||
z: 0.0
|
||||
yaw: 0.0
|
||||
pitch: 0.0
|
||||
|
Loading…
x
Reference in New Issue
Block a user