Fixed server crash
This commit is contained in:
@@ -602,7 +602,8 @@ public class NetServer extends Module{
|
|||||||
try{
|
try{
|
||||||
|
|
||||||
//iterate through each player
|
//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;
|
if(player.isLocal) continue;
|
||||||
|
|
||||||
NetConnection connection = player.con;
|
NetConnection connection = player.con;
|
||||||
|
|||||||
@@ -273,7 +273,7 @@ public class JoinDialog extends FloatingDialog{
|
|||||||
|
|
||||||
local.row();
|
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();
|
.width(w).height(80f).pad(4f).get();
|
||||||
button.left();
|
button.left();
|
||||||
button.row();
|
button.row();
|
||||||
|
|||||||
Reference in New Issue
Block a user