Skip to content

Commit 2336d21

Browse files
committedAug 4, 2013
Master server script improvement
1 parent 314e4dd commit 2336d21

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎util/master/master.cgi

+4-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,10 @@ sub request (;$) {
235235
$param->{first} ||= $old->{first} || $old->{time} || $param->{time};
236236
$param->{clients_top} = $old->{clients_top} if $old->{clients_top} > $param->{clients};
237237
$param->{clients_top} ||= $param->{clients} || 0;
238-
$param->{mods} ||= $old->{mods} if $old->{mods} and !($param->{action} ~~ 'start');
238+
# params reported once on start, must be same as src/serverlist.cpp:~221 if(server["action"] == "start") { ...
239+
for (qw(dedicated rollback liquid_finite mapgen mods)) {
240+
$param->{$_} ||= $old->{$_} if $old->{$_} and !($param->{action} ~~ 'start');
241+
}
239242
delete $param->{action};
240243
$listk->{$param->{key}} = $param;
241244
#printlog Dumper $param;

0 commit comments

Comments
 (0)
Please sign in to comment.