From b4b1f33ea053661ddcb52f3edf9a95da64c7991c Mon Sep 17 00:00:00 2001
From: Tron <89867985+Aviril@users.noreply.github.com>
Date: Fri, 29 Nov 2024 09:37:41 +0300
Subject: [PATCH] .
---
[Library]/assetify_library/meta.xml | 2 +-
[Library]/assetify_library/utilities/sandbox/discord.lua | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/[Library]/assetify_library/meta.xml b/[Library]/assetify_library/meta.xml
index d6f0fa0..6b71f65 100644
--- a/[Library]/assetify_library/meta.xml
+++ b/[Library]/assetify_library/meta.xml
@@ -1,6 +1,6 @@
-
+
diff --git a/[Library]/assetify_library/utilities/sandbox/discord.lua b/[Library]/assetify_library/utilities/sandbox/discord.lua
index 2413dda..db7c4e6 100644
--- a/[Library]/assetify_library/utilities/sandbox/discord.lua
+++ b/[Library]/assetify_library/utilities/sandbox/discord.lua
@@ -41,7 +41,6 @@ end
if localPlayer then
if settings.discord and settings.discord.appID then
thread:createHeartbeat(function()
- imports.resetDiscordRichPresenceData()
local userID = settings.discord.userID
settings.discord.userID = false
imports.setDiscordApplicationID(settings.discord.appID)
@@ -69,6 +68,8 @@ if localPlayer then
end
return true
end, function() end, settings.discord.trackRate)
+ else
+ imports.resetDiscordRichPresenceData()
end
else
network:create("Assetify:Discord:KickPlayer"):on(function(player, reason) kickPlayer(player, reason) end)