Skip to content

Commit

Permalink
place_schematic_on_data tampers with pos and it shouldn't. Make a loc…
Browse files Browse the repository at this point in the history
…al copy.
  • Loading branch information
FaceDeer committed Jan 29, 2020
1 parent cfb31b3 commit 9c73476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions place_schematic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ end
local empty_table = {}

mapgen_helper.place_schematic_on_data = function(data, data_param2, area, pos, schematic, rotation, replacements, force_placement, flags)
pos = vector.new(pos)
replacements = replacements or empty_table
flags = flags or empty_table -- TODO: support all flags formats
if flags.force_placement ~= nil then
Expand Down

0 comments on commit 9c73476

Please sign in to comment.