mirror of
https://github.com/Nan1t/NanoLimbo.git
synced 2025-07-12 20:50:13 +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]);
|
setAddress(split[1]);
|
||||||
profile.setUuid(UuidUtil.fromString(split[2]));
|
profile.setUuid(UuidUtil.fromString(split[2]));
|
||||||
} else {
|
} 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,8 +126,10 @@ public class ClientConnection extends ChannelInboundHandlerAdapter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (server.getConfig().getInfoForwarding().isNone()){
|
if (!server.getConfig().getInfoForwarding().isModern()){
|
||||||
profile.setUsername(((PacketLoginStart) packet).getUsername());
|
profile.setUsername(((PacketLoginStart) packet).getUsername());
|
||||||
|
|
||||||
|
if (profile.getUuid() == null)
|
||||||
profile.setUuid(UuidUtil.getOfflineModeUuid(getUsername()));
|
profile.setUuid(UuidUtil.getOfflineModeUuid(getUsername()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ dimension: THE_END
|
|||||||
# Spawn position in the world
|
# Spawn position in the world
|
||||||
spawnPosition:
|
spawnPosition:
|
||||||
x: 0.0
|
x: 0.0
|
||||||
y: 32.0
|
y: 64.0
|
||||||
z: 0.0
|
z: 0.0
|
||||||
yaw: 0.0
|
yaw: 0.0
|
||||||
pitch: 0.0
|
pitch: 0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user