XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: convert post-U9.5 clan hall when visiting in pre-U9.5 versions (#3473)

This ensures the user doesn't load into a broken dojo or fails to load it at all. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3473 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

176be120
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -1
Modified src/services/guildService.ts +6 -1
@@ -177,7 +177,12 @@ export const getDojoClient = async (
177 177 const clientComponent: IDojoComponentClient = {
178 178 id: toOid2(dojoComponent._id, buildLabel),
179 179 SortId: toOid2(dojoComponent.SortId ?? dojoComponent._id, buildLabel), // always providing a SortId so decos don't need repositioning to reparent
180 pf: dojoComponent.pf,
180 pf:
181 dojoComponent.pf == "/Lotus/Levels/ClanDojo/DojoHall.level" &&
182 buildLabel &&
183 version_compare(buildLabel, gameToBuildVersion["9.1.2"]) <= 0
184 ? "/Lotus/Levels/ClanDojo/ClanHallA.level" // Pre-U9.5
185 : dojoComponent.pf,
181 186 ppf: dojoComponent.ppf,
182 187 Name: dojoComponent.Name,
183 188 Message: dojoComponent.Message,