Fixed server crash

This commit is contained in:
Anuken
2018-11-29 16:30:41 -05:00
parent d25fe028b8
commit 897c296fbe
2 changed files with 3 additions and 2 deletions

View File

@@ -602,7 +602,8 @@ public class NetServer extends Module{
try{
//iterate through each player
for(Player player : playerGroup.all()){
for(int i = 0; i < playerGroup.size(); i ++){
Player player = playerGroup.all().get(i);
if(player.isLocal) continue;
NetConnection connection = player.con;

View File

@@ -273,7 +273,7 @@ public class JoinDialog extends FloatingDialog{
local.row();
TextButton button = local.addButton("[accent]" + host.name, () -> connect(host.address, port))
TextButton button = local.addButton("[accent]" + host.name, "clear", () -> connect(host.address, port))
.width(w).height(80f).pad(4f).get();
button.left();
button.row();