mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
Fixes Holster Logic
Apparently if a gun is holstered, cryo just automatically deletes it- this should fix that according to Sabre
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
w_class = WEIGHT_CLASS_NORMAL // so it doesn't fit in pockets
|
||||
|
||||
/obj/item/clothing/accessory/holster/Destroy()
|
||||
QDEL_NULL(holstered)
|
||||
if(holstered?.loc == src) // Gun still in the holster
|
||||
holstered.forceMove(loc)
|
||||
holstered = null
|
||||
return ..()
|
||||
|
||||
//subtypes can override this to specify what can be holstered
|
||||
|
||||
Reference in New Issue
Block a user