Fixed dropping modules on conveyor belts

This commit is contained in:
Loganbacca
2015-07-11 03:26:41 +12:00
parent e0ed7c3e69
commit 8848a51fe8
+3 -2
View File
@@ -95,8 +95,9 @@
// attack with item, place item on conveyor
/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user)
if(isrobot(user)) return //Carn: fix for borgs dropping their modules on conveyor belts
user.drop_item()
if(I && I.loc) I.loc = src.loc
if(I.loc != user) return // This should stop mounted modules ending up outside the module.
user.drop_item(src)
return
// attack with hand, move pulled object onto conveyor