Prevent crash when disabling cool phones

This commit is contained in:
Emik 2026-06-18 22:35:25 +02:00
parent e9201b3f78
commit 4a76ca294c
Signed by: emik
GPG key ID: 6B0CD72A5E503BDF
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@
"id": "Roland",
"name": "Roland",
"prefix": "Roland",
"version": "2.9.9",
"version": "2.9.10",
"badge_colour": "8BE9FD",
"display_name": "Roland",
"main_file": "src/main.lua",

View file

@ -42,7 +42,7 @@ local charm = (function()
local orig_equip = tbl.equip
function tbl.equip(...)
play_sound("Roland_phone", 1, 0.5)
local _ = cool_phones and play_sound("Roland_phone", 1, 0.5)
if orig_equip then
return orig_equip(...)