Update drill.dm

This commit is contained in:
Nadyr
2021-05-01 22:55:52 -04:00
committed by GitHub
parent abbff397c1
commit 33761e0558

View File

@@ -117,7 +117,7 @@
var/total_harvest = harvest_speed //Ore harvest-per-tick.
var/found_resource = 0 //If this doesn't get set, the area is depleted and the drill errors out.
for(var/metal in GLOB.ore_types)
for(var/metal in ore_types)
if(contents.len >= capacity)
system_error("Insufficient storage space.")
@@ -145,7 +145,7 @@
harvesting.resources[metal] = 0
for(var/i=1, i <= create_ore, i++)
var/oretype = GLOB.ore_types[metal]
var/oretype = ore_types[metal]
new oretype(src)
if(!found_resource) // If a drill can't see an advanced material, it will destroy it while going through.