mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-10-08 20:01:47 +08:00
fix: 浏览地图没有楼传也能传
This commit is contained in:
parent
695d069797
commit
ebe20cc285
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user