Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Commit af7c858

Browse files
committed
fix some bugs
1 parent a5b17a8 commit af7c858

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FakePlayerManager/FakePlayerController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,7 +1073,7 @@ class FakePlayerManager {
10731073
this.refreshData();
10741074
}
10751075
let fh = new FakePlayerFormHelper(this, player);
1076-
await fh.sendAgentForm();
1076+
await fh.sendQuickForm();
10771077
})().catch(e => {
10781078
logError('sendQuickForm', e, player);
10791079
});
@@ -1114,7 +1114,7 @@ class FakePlayerManager {
11141114
sendAddForm(player) {
11151115
let fh = new FakePlayerFormHelper(this, player);
11161116
fh.sendAddForm().catch(e => {
1117-
logError('sendMenuForm', e, player);
1117+
logError('sendAddForm', e, player);
11181118
});
11191119
}
11201120
sendTeleportForm(player) {
@@ -1517,7 +1517,7 @@ class FakePlayerWebSocketController extends FakePlayerController {
15171517
// 假装异步来统一 api
15181518
return new Promise((resolve, reject) => {
15191519
let result = this.wsc.connect(this.wsAddress);
1520-
this.ready = success;
1520+
this.ready = result;
15211521
resolve(result);
15221522
});
15231523
}

0 commit comments

Comments
 (0)