diff --git a/code/game/machinery/autolathe.dm b/code/game/machinery/autolathe.dm index 143f106294b..19e964a6bbf 100644 --- a/code/game/machinery/autolathe.dm +++ b/code/game/machinery/autolathe.dm @@ -155,12 +155,21 @@ if(I.materials.getVolume() + src.materials.getVolume() > max_material_storage) user << "\The [src]'s material bin is too full to recycle \the [I]." return 1 - if(I.materials.getAmount(MAT_IRON) + I.materials.getAmount(MAT_GLASS) < I.materials.getVolume()) + else if(I.materials.getAmount(MAT_IRON) + I.materials.getAmount(MAT_GLASS) < I.materials.getVolume()) user << "\The [src] can only accept objects made out of metal and glass." return 1 + else if(isrobot(user)) + if(isMoMMI(user)) + var/mob/living/silicon/robot/mommi/M = user + if(M.is_in_modules(I)) + user << "You cannot recycle your built in tools." + return 1 + else + user << "You cannot recycle your built in tools." + return 1 user.drop_item(I, src) materials.removeFrom(I.materials) user.visible_message("[user] puts \the [I] into \the [src]'s recycling unit.", "You put \the [I] in \the [src]'s reycling unit.") qdel(I) - return 1 + return 1 \ No newline at end of file