mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-10-27 13:59:58 +01:00
Correctly clone WrappedServerPing when the player count is hidden.
This commit is contained in:
parent
a0280a76d4
commit
5c92a46cfa
@ -312,10 +312,15 @@ public class WrappedServerPing extends AbstractWrapper {
|
||||
copy.setPlayers(getPlayers());
|
||||
copy.setFavicon(getFavicon());
|
||||
copy.setMotD(motd != null ? motd.deepClone() : null);
|
||||
copy.setPlayersMaximum(getPlayersMaximum());
|
||||
copy.setPlayersOnline(getPlayersOnline());
|
||||
copy.setVersionName(getVersionName());
|
||||
copy.setVersionProtocol(getVersionProtocol());
|
||||
|
||||
if (isPlayersVisible()) {
|
||||
copy.setPlayersMaximum(getPlayersMaximum());
|
||||
copy.setPlayersOnline(getPlayersOnline());
|
||||
} else {
|
||||
copy.setPlayersVisible(false);
|
||||
}
|
||||
return copy;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user