mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
Fixes gun overlays not updating when the cell is deleted (#48107)
Fixes gun overlays not updating when the cell is deleted
This commit is contained in:
@@ -62,6 +62,12 @@
|
||||
STOP_PROCESSING(SSobj, src)
|
||||
return ..()
|
||||
|
||||
/obj/item/gun/energy/handle_atom_del(atom/A)
|
||||
if(A == cell)
|
||||
cell = null
|
||||
update_icon(FALSE, TRUE)
|
||||
return ..()
|
||||
|
||||
/obj/item/gun/energy/process()
|
||||
if(selfcharge && cell && cell.percent() < 100)
|
||||
charge_tick++
|
||||
|
||||
Reference in New Issue
Block a user