Update #43 - Fix invisible block entities and other issues

This commit is contained in:
lax1dude
2024-11-20 19:39:40 -08:00
parent 6cd2eed5b3
commit 1e235f93bf
31 changed files with 237 additions and 198 deletions

View File

@ -164,7 +164,7 @@ public class LANClientNetworkManager extends EaglercraftNetworkManager {
}
EagUtils.sleep(20);
}while(EagRuntime.steadyTimeMillis() - lm < 5000l);
}while(EagRuntime.steadyTimeMillis() - lm < 10000l);
// no channel was opened
sock.writePacket(new RelayPacket06ClientFailure(ipkt.peerId));
@ -203,7 +203,7 @@ public class LANClientNetworkManager extends EaglercraftNetworkManager {
continue mainLoop;
}
EagUtils.sleep(20);
}while(EagRuntime.steadyTimeMillis() - lm < 5000l);
}while(EagRuntime.steadyTimeMillis() - lm < 10000l);
// no ice candidates were sent
sock.close();

View File

@ -84,7 +84,7 @@ class LANClientPeer {
protected void update() {
if(state != CLOSED) {
if(state != CONNECTED && EagRuntime.steadyTimeMillis() - startTime > 10000l) {
if(state != CONNECTED && EagRuntime.steadyTimeMillis() - startTime > 13000l) {
logger.info("LAN client '{}' handshake timed out", clientId);
disconnect();
return;