Skip to content

Commit bce5b49

Browse files
authored
Merge pull request #5612 from quietust/cleanconst
Update cleanconst to skip reinforced constructions
2 parents a07aa8a + a8e4cb1 commit bce5b49

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Template for new versions:
3333
## New Features
3434

3535
## Fixes
36+
- `cleanconst`: do not attempt to clean Reinforced constructions
3637

3738
## Misc Improvements
3839

plugins/cleanconst.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ command_result df_cleanconst(color_ostream &out, vector <string> & parameters)
4545
if (cons->flags.bits.no_build_item)
4646
continue;
4747

48+
// Skip reinforced constructions as well
49+
if (cons->flags.bits.reinforced)
50+
continue;
51+
4852
// only destroy the item if the construction claims to be made of the exact same thing
4953
if (item->getType() != cons->item_type ||
5054
item->getSubtype() != cons->item_subtype ||

0 commit comments

Comments
 (0)