X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fvoxelalgorithms.cpp;h=f067a221ac1504484bc5ff4cd9e6beb6618a022d;hb=0a0378fecef5c6b4be6d034d8bced2a1568dde81;hp=14638a82776cc5b5264c0daadce1c0b24447105e;hpb=6a1670dbc31cc0e44178bbd9ad34ff0d5981a060;p=minetest.git diff --git a/src/voxelalgorithms.cpp b/src/voxelalgorithms.cpp index 14638a827..f067a221a 100644 --- a/src/voxelalgorithms.cpp +++ b/src/voxelalgorithms.cpp @@ -46,7 +46,7 @@ void clearLightAndCollectSources(VoxelManipulator &v, VoxelArea a, VoxelArea required_a = a; required_a.pad(v3s16(0,0,0)); // Make sure we have access to it - v.emerge(a); + v.addArea(a); for(s32 x=a.MinEdge.X; x<=a.MaxEdge.X; x++) for(s32 z=a.MinEdge.Z; z<=a.MaxEdge.Z; z++) @@ -85,7 +85,7 @@ SunlightPropagateResult propagateSunlight(VoxelManipulator &v, VoxelArea a, VoxelArea required_a = a; required_a.pad(v3s16(0,1,0)); // Make sure we have access to it - v.emerge(a); + v.addArea(a); s16 max_y = a.MaxEdge.Y; s16 min_y = a.MinEdge.Y;