fix: 大地图自动寻路

This commit is contained in:
AncTe committed 2024-10-03 17:25:21 +08:00
1 parent f98362f748
commit c6b701c9ff
5 files changed
+5 -86

No files matched your search

+4
View File
@@ -171,8 +171,12 @@ export function init() {
adapters['hero-adapter']?.sync('setAnimateDir', value);
setHeroDirection(value as Dir);
} else if (name === 'x') {
// 为了防止逆天样板出问题
core.bigmap.posX = value as number;
adapters['hero-adapter']?.sync('setHeroLoc', value);
} else {
// 为了防止逆天样板出问题
core.bigmap.posY = value as number;
adapters['hero-adapter']?.sync('setHeroLoc', void 0, value);
}
};