Skip to content

Commit c1ec87f

Browse files
committed
Force re-calculate light in write_to_map
1 parent 56fcbe4 commit c1ec87f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

we_undo/init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ undo_funcs.nodes = function(name, data)
713713
manip:set_data(m_nodes)
714714
manip:set_light_data(m_param1s)
715715
manip:set_param2_data(m_param2s)
716-
manip:write_to_map()
716+
manip:write_to_map(true)
717717

718718
-- swap metaens strings
719719
local indices_m = decompressed_data.indices_m
@@ -876,7 +876,7 @@ undo_funcs.nodeids = function(name, data)
876876
end
877877

878878
manip:set_data(mdata)
879-
manip:write_to_map()
879+
manip:write_to_map(true)
880880

881881
data.compressed_data = compress_nodedata{
882882
indices_n = indices,

worldedit/common.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,6 @@ function mh.finish(manip, data)
118118
if data ~= nil then
119119
manip:set_data(data)
120120
end
121-
manip:write_to_map()
121+
manip:write_to_map(true)
122122
end
123123

worldedit/manipulations.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function worldedit.set_param2(pos1, pos2, param2)
5656

5757
-- Update map
5858
manip:set_param2_data(param2_data)
59-
manip:write_to_map()
59+
manip:write_to_map(true)
6060

6161
return worldedit.volume(pos1, pos2)
6262
end

0 commit comments

Comments
 (0)