From 9e94abb1504af537ef666da3637807beeefac037 Mon Sep 17 00:00:00 2001 From: Caeleron <44181487+Caeleron@users.noreply.github.com> Date: Tue, 25 Dec 2018 17:12:56 -0500 Subject: [PATCH] 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. --- src/simulation/elements/COAL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/elements/COAL.cpp b/src/simulation/elements/COAL.cpp index 01c6eaad0c..18fa8ff00e 100644 --- a/src/simulation/elements/COAL.cpp +++ b/src/simulation/elements/COAL.cpp @@ -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; } }