forked from MineClone5/MineClone5
Merge remote-tracking branch 'origin/testing' into production
This commit is contained in:
commit
78ce759b4b
|
@ -192,7 +192,8 @@ local function construct_node(p1, p2, name)
|
||||||
end
|
end
|
||||||
minetest.log("warning", "[mcl_villages] Attempt to 'construct' inexistant nodes: " .. name)
|
minetest.log("warning", "[mcl_villages] Attempt to 'construct' inexistant nodes: " .. name)
|
||||||
end
|
end
|
||||||
local function init_nodes(p1, p2, size, rotation, pr)
|
local function init_nodes(p1, rotation, pr, size)
|
||||||
|
local p2 = vector.subtract(vector.add(p1, size), 1)
|
||||||
construct_node(p1, p2, "mcl_itemframes:item_frame")
|
construct_node(p1, p2, "mcl_itemframes:item_frame")
|
||||||
construct_node(p1, p2, "mcl_furnaces:furnace")
|
construct_node(p1, p2, "mcl_furnaces:furnace")
|
||||||
construct_node(p1, p2, "mcl_anvils:anvil")
|
construct_node(p1, p2, "mcl_anvils:anvil")
|
||||||
|
@ -272,8 +273,7 @@ function settlements.place_schematics(settlement_info, pr)
|
||||||
pos = pos,
|
pos = pos,
|
||||||
schematic = schematic,
|
schematic = schematic,
|
||||||
rotation = rotation,
|
rotation = rotation,
|
||||||
force_placement = true,
|
on_placed = init_nodes,
|
||||||
on_place = init_nodes,
|
|
||||||
pr = pr,
|
pr = pr,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue