From 240499dc2c766c9d022e6df71e770a116a2c95de Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 18 Dec 2010 17:46:00 +0200 Subject: before daynight mesh cache --- src/voxel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/voxel.cpp') diff --git a/src/voxel.cpp b/src/voxel.cpp index 6412957b2..e94cba0f6 100644 --- a/src/voxel.cpp +++ b/src/voxel.cpp @@ -734,12 +734,12 @@ bool VoxelManipulator::flowWater(v3s16 removed_pos, correctly. Otherwise unspreadLight will fuck up when water has replaced a light source. */ - u8 light = m_data[m_area.index(removed_pos)].getLight(); + u8 light = m_data[m_area.index(removed_pos)].getLightBanksWithSource(); m_data[m_area.index(removed_pos)].d = m; m_flags[m_area.index(removed_pos)] = f; - m_data[m_area.index(removed_pos)].setLight(light); + m_data[m_area.index(removed_pos)].setLightBanks(light); /*// NOTE: HACK: This has to be set to LIGHT_MAX so that // unspreadLight will clear all light that came from this node. -- cgit v1.2.3