Fixes a runtime when the recycler eats something and

destroys something else it was going to munch
This commit is contained in:
Crazylemon64
2016-08-22 21:56:39 -07:00
parent ce58dc1366
commit eec89c6a7e
+2 -1
View File
@@ -123,7 +123,8 @@ var/const/SAFETY_COOLDOWN = 100
items_recycled++
else
playsound(loc, 'sound/machines/buzz-sigh.ogg', 50, 0)
AM.loc = loc
if(AM)
AM.loc = loc
if(items_recycled && sound)
playsound(loc, item_recycle_sound, 100, 0)