mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Fixes rugs runtiming when cleaning objects (#96463)
## About The Pull Request all_cleaned can contain nulls if an object didnt have any blood on it ## Changelog 🆑 fix: Fixed rugs runtiming when cleaning objects /🆑
This commit is contained in:
@@ -130,7 +130,8 @@
|
||||
if(isturf(clean_target) && !HAS_TRAIT(cleaned, TRAIT_MOPABLE))
|
||||
continue
|
||||
// collect dna FIRST
|
||||
all_blood_dna |= all_cleaned[cleaned]
|
||||
if (!isnull(all_cleaned[cleaned])) // Check if there was any blood on it, we don't want nulls in our list
|
||||
all_blood_dna |= all_cleaned[cleaned]
|
||||
// THEN pass on dna (though in some cases the cleaned item is being deleted)
|
||||
if(blood_level > 0 && !QDELING(cleaned))
|
||||
cleaned.add_blood_DNA(GET_ATOM_BLOOD_DNA(src))
|
||||
|
||||
Reference in New Issue
Block a user