Skip to content

Commit

Permalink
Merge pull request #46359 from RoyBerube/sealed_container_spawn
Browse files Browse the repository at this point in the history
Seal only full containers on spawn
  • Loading branch information
ZhilkinSerg authored Dec 27, 2020
2 parents 73afb2c + 1bce47e commit 8b0433f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6817,7 +6817,11 @@ bool item::is_map() const

bool item::seal()
{
return contents.seal_all_pockets();
if( is_container_full() ) {
return contents.seal_all_pockets();
} else {
return false;
}
}

bool item::is_container() const
Expand Down

0 comments on commit 8b0433f

Please sign in to comment.