From 46b7836dac99b00796a1578d2d513b93e41a5d36 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 18 May 2022 01:01:57 +0200 Subject: [PATCH] Villagegen: Remove pointless voxelmanip invocation --- mods/rp_util/init.lua | 11 ----------- mods/rp_village/generate.lua | 2 -- 2 files changed, 13 deletions(-) diff --git a/mods/rp_util/init.lua b/mods/rp_util/init.lua index c27959a..c8084aa 100644 --- a/mods/rp_util/init.lua +++ b/mods/rp_util/init.lua @@ -58,17 +58,6 @@ function util.nodefunc(pos1, pos2, nodes, func, nomanip) end end -function util.getvoxelmanip(pos1, pos2) - -- function based off fixlight - -- return a voxel manipulator - local pos1, pos2 = util.sort_pos(pos1, pos2) - - local manip = minetest.get_voxel_manip() - manip:read_from_map(pos1, pos2) - - return manip -end - function util.remove_area(pos1, pos2, nomanip) -- function based off fixlight -- call a function for every node of a single type diff --git a/mods/rp_village/generate.lua b/mods/rp_village/generate.lua index d99a621..58085e5 100644 --- a/mods/rp_village/generate.lua +++ b/mods/rp_village/generate.lua @@ -323,8 +323,6 @@ function village.spawn_chunk(pos, state, orient, replace, pr, chunktype, noclear state = { music_players = 0 } end - util.getvoxelmanip(pos, {x = pos.x+12, y = pos.y+12, z = pos.z+12}) - if nofill ~= true then -- Make a hill for the building to stand on village.generate_hill({x=pos.x-6, y=pos.y-5, z=pos.z-6}, ground, ground_top) -- 2.11.4.GIT