From ff2cd808d58b72e7b3b73f5ba4a38433c935ea43 Mon Sep 17 00:00:00 2001 From: kay27 Date: Thu, 28 Jan 2021 03:17:11 +0400 Subject: [PATCH] Fix https://git.minetest.land/Wuzzy/MineClone2/issues/1022 --- mods/MAPGEN/mcl_villages/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/MAPGEN/mcl_villages/init.lua b/mods/MAPGEN/mcl_villages/init.lua index 6b795542..fe9ae063 100644 --- a/mods/MAPGEN/mcl_villages/init.lua +++ b/mods/MAPGEN/mcl_villages/init.lua @@ -162,7 +162,7 @@ minetest.register_craftitem("mcl_villages:tool", { -- build ssettlement -- on_place = function(itemstack, placer, pointed_thing) - local pr = PseudoRandom(math.rand(0,32767)) + local pr = PseudoRandom(math.random(0,32767)) -- enable debug routines local center_surface = pointed_thing.under if center_surface then @@ -213,10 +213,10 @@ minetest.register_craftitem("mcl_villages:tool", { -- if settlements.lvm == true then vm:set_data(data) - settlements.place_schematics_lvm(pr) + settlements.place_schematics_lvm(settlement_info, pr) vm:write_to_map(true) else - settlements.place_schematics() + settlements.place_schematics(settlement_info, pr) end --