diff --git a/code/game/machinery/dye_generator.dm b/code/game/machinery/dye_generator.dm
index 90f73b61dd4..6003f05840a 100644
--- a/code/game/machinery/dye_generator.dm
+++ b/code/game/machinery/dye_generator.dm
@@ -112,6 +112,9 @@
user.visible_message("[user] starts dying [M]'s [what_to_dye]!", "You start dying [M]'s [what_to_dye]!")
if(do_after(user, 50, target = H))
+ if(!Adjacent(H))
+ to_chat(user, "You are too far away!")
+ return
switch(what_to_dye)
if("hair")
H.change_hair_color(dye_color)