mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01: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