fix: 浏览地图没有楼传也能传

This commit is contained in:
unanmed 2025-09-29 20:11:22 +08:00
parent 695d069797
commit ebe20cc285

View File

@ -142,6 +142,7 @@ export const ViewMap = defineComponent<ViewMapProps>(props => {
const openBook = () => core.openBook(true); const openBook = () => core.openBook(true);
const fly = () => { const fly = () => {
if (!core.hasItem('fly')) return;
const id = viewableFloor[now.value]; const id = viewableFloor[now.value];
const success = core.flyTo(id); const success = core.flyTo(id);
if (success) close(); if (success) close();