mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
Stored the material name in case the stack was deleted after the sleep() when dealing with overlays.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user