forked from Hri7566/mpp-server-dev2
Add config check back, since bun doesn't crash anymore...?
This commit is contained in:
parent
7c40e0a288
commit
a4eacc5443
|
@ -12,9 +12,7 @@ export const n: ServerEventListener<"n"> = {
|
||||||
for (const n of msg.n) {
|
for (const n of msg.n) {
|
||||||
if (typeof n.n != "string") return;
|
if (typeof n.n != "string") return;
|
||||||
|
|
||||||
// TODO Check for config.enableCustomNoteData here
|
if (config.enableCustomNoteData) continue;
|
||||||
// For whatever reason, Bun likes to crash when we access that config object
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (n.s) {
|
if (n.s) {
|
||||||
if (typeof n.s !== "number") return;
|
if (typeof n.s !== "number") return;
|
||||||
|
|
Loading…
Reference in New Issue