Fix crash with nil messages

This commit is contained in:
Herr Katze committed 2026-02-01 16:32:03 -08:00
1 parent 94683e34bf
commit b9db35ec9c
3 files changed
+53 -35

No files matched your search

+5
View File
@@ -24,6 +24,11 @@ local function interactWithCard(userUUID, mode, money)
sleep(30)
--shell.run("reboot")
end
if not message then
print("WTF!? I got a rednet message with no data!?")
print("Rebooting...")
sleep(5)
end
if message.type == "account_data" and message.cardId == cardUUID then
local money = message.balance
local playerUUID = message.uuid