Correctly clone WrappedServerPing when the player count is hidden.
Dieser Commit ist enthalten in:
Ursprung
a0280a76d4
Commit
5c92a46cfa
@ -312,10 +312,15 @@ public class WrappedServerPing extends AbstractWrapper {
|
|||||||
copy.setPlayers(getPlayers());
|
copy.setPlayers(getPlayers());
|
||||||
copy.setFavicon(getFavicon());
|
copy.setFavicon(getFavicon());
|
||||||
copy.setMotD(motd != null ? motd.deepClone() : null);
|
copy.setMotD(motd != null ? motd.deepClone() : null);
|
||||||
copy.setPlayersMaximum(getPlayersMaximum());
|
|
||||||
copy.setPlayersOnline(getPlayersOnline());
|
|
||||||
copy.setVersionName(getVersionName());
|
copy.setVersionName(getVersionName());
|
||||||
copy.setVersionProtocol(getVersionProtocol());
|
copy.setVersionProtocol(getVersionProtocol());
|
||||||
|
|
||||||
|
if (isPlayersVisible()) {
|
||||||
|
copy.setPlayersMaximum(getPlayersMaximum());
|
||||||
|
copy.setPlayersOnline(getPlayersOnline());
|
||||||
|
} else {
|
||||||
|
copy.setPlayersVisible(false);
|
||||||
|
}
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren