fix fzsd_score.sc

This commit is contained in:
延皓 2022-08-02 01:21:45 +08:00
parent 26dac885cb
commit 24bb299869
3 changed files with 6 additions and 4 deletions

View File

@ -27,7 +27,7 @@
## *目前仍在测试阶段,请先备份服务器再使用!*
[![数据包版本](https://img.shields.io/badge/测试版-3.0+beta.7-blue.svg)](https://gitee.com/harvey-husky/FZ-sDatapack/releases/v3.0-beta.6) [![MC版本](https://img.shields.io/badge/Minecraft-1.19+-blue.svg)](https://minecraft.net/)
[![数据包版本](https://img.shields.io/badge/测试版-3.0+beta.8-blue.svg)](https://gitee.com/harvey-husky/FZ-sDatapack/releases/v3.0-beta.8) [![MC版本](https://img.shields.io/badge/Minecraft-1.19+-blue.svg)](https://minecraft.net/)
> 其他版本见[发行页面](https://gitee.com/harvey-husky/FZ-sDatapack/releases)

View File

@ -1,4 +1,4 @@
execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd: {version: '3.0.0-beta.7'}}
execute store success storage fzsd:version fzsd.need_update int 1 run data merge storage fzsd:version {fzsd: {version: '3.0.0-beta.8'}}
execute if data storage fzsd:version fzsd{need_update: 1} run function fzsd:system/update
function fzsd:system/carpet/try_load_fzsd_score
function #fzsd:load

View File

@ -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, _));
);
);