Fixed issue with build.
Changed MainGame to create a thread instead of a client and used the client as input for the thread Changed client to extend Controller instead of thread
This commit is contained in:
@@ -14,10 +14,7 @@ public class Client extends Controller {
|
||||
private String hostname;
|
||||
private boolean isConnected = true;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
this.connect();
|
||||
}
|
||||
|
||||
|
||||
public Client(String hostname, int port) {
|
||||
this.port = port;
|
||||
@@ -74,4 +71,9 @@ public class Client extends Controller {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
this.connect();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user