mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-06 04:03:39 +00:00
Fix PlayerDB insert
This commit is contained in:
parent
be0356e24f
commit
8b8bb5d39d
@ -148,9 +148,7 @@ bool InitPlayerDatabase() {
|
|||||||
// return true;
|
// return true;
|
||||||
// });
|
// });
|
||||||
Event::PlayerJoinEvent::subscribe([](const Event::PlayerJoinEvent& e) {
|
Event::PlayerJoinEvent::subscribe([](const Event::PlayerJoinEvent& e) {
|
||||||
if (!e.mPlayer) {
|
insert(e.mPlayer->getRealName(), e.mPlayer->getXuid(), e.mPlayer->getUuid());
|
||||||
insert(e.mPlayer->getRealName(), e.mPlayer->getXuid(), e.mPlayer->getUuid());
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
} catch (std::exception const& e) {
|
} catch (std::exception const& e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user