mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Better masterserver html
This commit is contained in:
parent
288948edf7
commit
0a2de78da4
3 changed files with 23 additions and 6 deletions
|
@ -152,7 +152,6 @@ sub float {
|
|||
return ($_[0] < 8 and $_[0] - int($_[0]))
|
||||
? sprintf('%.' . ($_[0] < 1 ? 3 : ($_[0] < 3 ? 2 : 1)) . 'f', $_[0])
|
||||
: int($_[0]);
|
||||
|
||||
}
|
||||
|
||||
sub mineping ($$) {
|
||||
|
@ -236,7 +235,7 @@ sub request (;$) {
|
|||
$param->{first} ||= $old->{first} || $old->{time} || $param->{time};
|
||||
$param->{clients_top} = $old->{clients_top} if $old->{clients_top} > $param->{clients};
|
||||
$param->{clients_top} ||= $param->{clients} || 0;
|
||||
$param->{mods} ||= $old->{mods};
|
||||
$param->{mods} ||= $old->{mods} unless $param->{action} ~~ 'start';
|
||||
delete $param->{action};
|
||||
$listk->{$param->{key}} = $param;
|
||||
#printlog Dumper $param;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue