fix fzsd_score.sc
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// 计分板模块扩展插件
|
||||
// 忽略假人分数
|
||||
// **请勿修改文件名!!**
|
||||
global_app_version = '1.0-beta.5';
|
||||
global_app_version = '1.0-beta.6';
|
||||
|
||||
__config() -> {
|
||||
'scope' -> 'global',
|
||||
@@ -154,6 +154,8 @@ merge_score(from, to, fzsd_version) -> (
|
||||
// 如果目标计分板不存在则创建
|
||||
if(scoreboard() ~ to == null, scoreboard_add(to));
|
||||
|
||||
// new_players = [];
|
||||
|
||||
if(fzsd_version == '2.x',
|
||||
(
|
||||
// 2.x数据包的假人列表
|
||||
@@ -171,7 +173,7 @@ merge_score(from, to, fzsd_version) -> (
|
||||
);
|
||||
|
||||
for(scoreboard(from),
|
||||
if(contains(new_players, _) && !(_ ~ '\\W'),
|
||||
if(!(_ ~ '\\W'),
|
||||
scoreboard(to, _, scoreboard(to, _) + scoreboard(from, _));
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user