use max light from either source or target

This commit is contained in:
BuckarooBanzay 2023-05-30 10:16:34 +02:00
parent 4739a3fdac
commit 5159101684

View File

@ -32,7 +32,8 @@ function mapsync.apply_diff(chunk_pos, changed_nodes)
end
if changed_node.param1 ~= nil then
param1[index] = changed_node.param1
-- use max light from source or target
param1[index] = math.max(param1[index], changed_node.param1)
end
if changed_node.param2 ~= nil then