Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Transfer properties of COAL breaking into BCOL (Fixes #602)
Fixing a problem where decoration is not transferred from COAL to BCOL when broken. All properties of COAL should now be copied to the new BCOL particle, including if it is burning, decoration and discoloration caused from heating.
  • Loading branch information
Caeleron authored and jacob1 committed Dec 25, 2018
1 parent 87fb94c commit 9e94abb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simulation/elements/COAL.cpp
Expand Up @@ -63,7 +63,7 @@ int Element_COAL::update(UPDATE_FUNC_ARGS)
else if (parts[i].tmp<40&&parts[i].tmp>0)
parts[i].tmp--;
else if (parts[i].tmp<=0) {
sim->create_part(i, x, y, PT_BCOL);
sim->part_change_type(i, x, y, PT_BCOL);
return 1;
}
}
Expand Down

0 comments on commit 9e94abb

Please sign in to comment.