fix: 悬停错位

This commit is contained in:
AncTe committed 2024-11-20 19:49:13 +08:00
1 parent 3c5a310146
commit 003369bed1
4 files changed
+12 -8

No files matched your search

+6 -5
View File
@@ -218,10 +218,11 @@ export function init() {
(core.flags.flyNearStair && !core.nearStair())
)
return false;
if (core.flyTo(floorId, core.replay)) {
tipAndWait(`飞往:${floorId}`, 1000);
return true;
}
return false;
tipAndWait(`飞往:${floorId}`, 1000).then(() => {
if (!core.flyTo(floorId, core.replay)) {
core.control._replay_error(action);
}
});
return true;
});
}