use max light from either source or target
This commit is contained in:
parent
4739a3fdac
commit
5159101684
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user