Fixes held/carried mice eating cables

This commit is contained in:
Kyep
2019-10-27 23:40:29 -07:00
parent 9061742db5
commit 3d638b8aec
@@ -41,7 +41,7 @@
AddComponent(/datum/component/squeak, list('sound/creatures/mousesqueak.ogg' = 1), 100)
/mob/living/simple_animal/mouse/handle_automated_action()
if(prob(chew_probability))
if(prob(chew_probability) && isturf(loc))
var/turf/simulated/floor/F = get_turf(src)
if(istype(F) && !F.intact)
var/obj/structure/cable/C = locate() in F