Prevent crash when disabling cool phones
This commit is contained in:
parent
e9201b3f78
commit
4a76ca294c
2 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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(...)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue