set IP to 0.0.0.0 in server mode
This commit is contained in:
parent
21563dd469
commit
ffa04a50cb
|
@ -61,13 +61,18 @@ public class JoinGame extends JPanel {
|
|||
add(backButton);
|
||||
|
||||
backButton.addActionListener(e -> frame.showPanel("MultiplayerGame"));
|
||||
losButton.addActionListener(e -> frame.showPanel("Verbinden"));
|
||||
// losButton.addActionListener(e -> frame.showPanel("Verbinden"));
|
||||
|
||||
|
||||
losButton.addActionListener(new ActionListener() {
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
||||
String ipAddress = ipTextField.getText();
|
||||
if (ipAddress.equals("")) {
|
||||
ipAddress = "0.0.0.0";
|
||||
}
|
||||
|
||||
String portText = portTextField.getText();
|
||||
|
||||
int port = Integer.parseInt(portText);
|
||||
|
|
Loading…
Reference in New Issue