mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-01 21:13:07 +00:00
POLARIS: Fix holders to avoid forcemoving held mob to nullspace
This commit is contained in:
@@ -39,10 +39,13 @@ var/list/holder_mob_icon_cache = list()
|
||||
update_state()
|
||||
|
||||
/obj/item/weapon/holder/proc/update_state()
|
||||
if(istype(loc,/turf) || !(contents.len))
|
||||
if(!(contents.len))
|
||||
qdel(src)
|
||||
else if(isturf(loc))
|
||||
drop_items()
|
||||
if(held_mob)
|
||||
held_mob.forceMove(loc)
|
||||
drop_items()
|
||||
held_mob = null
|
||||
qdel(src)
|
||||
|
||||
/obj/item/weapon/holder/proc/drop_items()
|
||||
|
||||
Reference in New Issue
Block a user