ND-Framework / ND_Core

ND Framework core
https://discord.gg/nC82d8zvjM
GNU General Public License v3.0
54 stars 36 forks source link

fix: not getting discord info till resource gets restarted #46

Closed realCallMeJ closed 10 months ago

realCallMeJ commented 10 months ago

fixes #45 in the playerConnecting event, discordInfo was always being returned as true because the table existed, whether it was empty or not. this caused the if statement that would run checkDiscordIdentifier to always be skipped due to it requiring discordInfo to be false, preventing the proper retrieval of any discord identifier data. the changes i have made will fix that by using next to check if the table is empty. also added next as a local for optimization