Skip to content

Commit

Permalink
check id of inserted items against corpse list to prevent their use
Browse files Browse the repository at this point in the history
  • Loading branch information
RenechCDDA authored and Karol1223 committed Dec 5, 2023
1 parent 1bf913c commit dd11307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3000,7 +3000,8 @@ void iexamine::digester_empty( Character &you, const tripoint &examp )
add_msg( _( "This digester already finished producing methane." ) );
add_msg( _( "Remove it before starting the process again." ) );
return;
} else if( i.made_of_any( methanable ) ) {
} else if( i.made_of_any( methanable ) &&
!item_group::group_contains_item( Item_spawn_data_corpses_all, i.typeId() ) ) {
fuel_present = true;
} else {
add_msg( m_bad, _( "This digester contains %s, which can't be used to produce methane!" ),
Expand Down

0 comments on commit dd11307

Please sign in to comment.