From 29f09634fdda4542816e3e655eb7e121ea38508c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 3 Sep 2022 03:13:23 +0200 Subject: [PATCH] more hat shit --- files/routes/hats.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/routes/hats.py b/files/routes/hats.py index 1d349081d..160bc03be 100644 --- a/files/routes/hats.py +++ b/files/routes/hats.py @@ -81,6 +81,8 @@ def equip_hat(v, hat_id): @app.post("/unequip_hat") @auth_required def unequip_hat(v): + if not FEATURES['HATS']: abort(404) + v.equipped_hat_id = None g.db.add(v)