fixed blueprint detector not working when client unloads chunk
code cleanup