Browse Source

забыл про добавить карту

master
gsd 2 years ago
parent
commit
490e780bc8
  1. 3
      src/main/java/app/entities/server/Server.java

3
src/main/java/app/entities/server/Server.java

@ -31,6 +31,7 @@ public class Server {
int player_count; int player_count;
int max_players; int max_players;
boolean status; boolean status;
String map;
String color; String color;
String workshop; String workshop;
List<String> naming; List<String> naming;
@ -59,6 +60,7 @@ public class Server {
setMax_players(response.getResult().getMaxPlayers()); setMax_players(response.getResult().getMaxPlayers());
setPlayer_count(response.getResult().getNumOfPlayers()); setPlayer_count(response.getResult().getNumOfPlayers());
setMap(response.getResult().getMapName());
setStatus(true); setStatus(true);
} }
@ -128,6 +130,7 @@ public class Server {
setMax_players(0); setMax_players(0);
setPlayer_count(0); setPlayer_count(0);
players.clear(); players.clear();
setMap("");
} }
@JsonIgnore @JsonIgnore

Loading…
Cancel
Save