mfw I forget to anchor

This commit is contained in:
Shadow
2019-08-29 19:14:21 -05:00
parent f47716bf5e
commit a4b3030e4a
2 changed files with 3 additions and 3 deletions
@@ -19,6 +19,7 @@
var/storage_capacity = 30 //This is so that someone can't pack hundreds of items in a locker/crate then open it in a populated area to crash clients.
var/material_drop = /obj/item/stack/sheet/metal
var/material_drop_amount = 2
var/mob_size = MOB_SIZE_LARGE
/obj/structure/closet/New()
..()
@@ -99,15 +100,13 @@
itemcount++
for(var/mob/M in loc)
if(M.mob_size <= MOB_SIZE_LARGE) // No more stuffing xeno empresses into lockers
return FALSE
if(itemcount >= storage_capacity)
break
if(istype(M, /mob/dead/observer))
continue
if(istype(M, /mob/living/simple_animal/bot/mulebot))
continue
if(M.buckled)
if(M.buckled || M.anchored)
continue
M.forceMove(src)