This commit is contained in:
Anuken
2022-01-02 00:26:08 -05:00
parent b591afa2ec
commit 8f17fb43a6
3 changed files with 3 additions and 3 deletions

View File

@ -874,7 +874,7 @@ public class NetServer implements ApplicationListener{
net.host(Config.port.num());
info("Opened a server on port @.", Config.port.num());
}catch(BindException e){
err("Unable to host: Port already in use! Make sure no other servers are running on the same port in your network.");
err("Unable to host: Port " + Config.port.num() + " already in use! Make sure no other servers are running on the same port in your network.");
state.set(State.menu);
}catch(IOException e){
err(e);

View File

@ -57,7 +57,7 @@ public abstract class NetConnection{
}
/** Kick with an arbitrary reason, and a kick duration in milliseconds. */
private void kick(String reason, KickReason kickType, long kickDuration){
private void kick(String reason, @Nullable KickReason kickType, long kickDuration){
if(kicked) return;
Log.info("Kicking connection @ / @; Reason: @", address, uuid, reason == null ? kickType.name() : reason.replace("\n", " "));

View File

@ -24,4 +24,4 @@ android.useAndroidX=true
#used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000
archash=5402a17620
archash=3bd873b8b7