Stored the material name in case the stack was deleted after the sleep() when dealing with overlays.

This commit is contained in:
Menshin
2015-09-13 01:57:21 +02:00
parent ce2ee15b57
commit 89ce4e112d
+3 -2
View File
@@ -119,11 +119,12 @@ Note: Must be placed west/left of and R&D console to function.
if(!amount_inserted)
return 1
else
var/stack_name = stack.name
busy = 1
use_power(max(1000, (MINERAL_MATERIAL_AMOUNT*amount_inserted/10)))
user << "<span class='notice'>You add [amount_inserted] sheets to the [src.name].</span>"
overlays += "protolathe_[stack.name]"
overlays += "protolathe_[stack_name]"
sleep(10)
overlays -= "protolathe_[stack.name]"
overlays -= "protolathe_[stack_name]"
busy = 0
updateUsrDialog()