belt now checks ERP prefs

This commit is contained in:
WoolyAypa
2023-01-18 18:47:29 -03:00
parent 656776d9c2
commit 40e474efdb
@@ -18,6 +18,10 @@
if(!CHECK_BITFIELD(slot, ITEM_SLOT_UNDERWEAR) || !ishuman(user) || !ishuman(usr))
return
if(!(user.client?.prefs?.erppref == "Yes"))
to_chat(user, span_warning("They don't want you to do that!"))
return
var/mob/holder = usr
owner = user