From 14edda4fd002a8ec71a8894f71870e81090a26dc Mon Sep 17 00:00:00 2001 From: kay27 Date: Fri, 18 Feb 2022 18:23:58 +0400 Subject: [PATCH] Localise a var --- mods/CORE/mcl_mapgen/mod.conf | 8 ++++---- mods/MAPGEN/mcl_mapgen_core/nether_wart.lua | 2 +- mods/MAPGEN/mcl_villages/init.lua | 1 - 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/mods/CORE/mcl_mapgen/mod.conf b/mods/CORE/mcl_mapgen/mod.conf index 76b4a5c93..fa734ae2b 100644 --- a/mods/CORE/mcl_mapgen/mod.conf +++ b/mods/CORE/mcl_mapgen/mod.conf @@ -1,4 +1,4 @@ -name = mcl_mapgen -author = kay27 -description = MineClone 2/5 MapGen Basic Stuff -depends = mcl_init +name = mcl_mapgen +author = kay27 +description = MineClone 2/5 MapGen Basic Stuff +depends = mcl_init diff --git a/mods/MAPGEN/mcl_mapgen_core/nether_wart.lua b/mods/MAPGEN/mcl_mapgen_core/nether_wart.lua index 7ea73ca4b..10554e7c4 100644 --- a/mods/MAPGEN/mcl_mapgen_core/nether_wart.lua +++ b/mods/MAPGEN/mcl_mapgen_core/nether_wart.lua @@ -43,7 +43,7 @@ mcl_mapgen.register_mapgen_block(function(minp, maxp, seed) local p1 = {x = minp.x + decrease_search_area, y = y1 + decrease_search_area, z = minp.z + decrease_search_area} local p2 = {x = maxp.x - decrease_search_area, y = y2 - decrease_search_area, z = maxp.z - decrease_search_area} - pos_list = minetest_find_nodes_in_area_under_air(p1, p2, place_on) + local pos_list = minetest_find_nodes_in_area_under_air(p1, p2, place_on) local pr = PseudoRandom(seed) wart_perlin = wart_perlin or minetest_get_perlin(noise_params) diff --git a/mods/MAPGEN/mcl_villages/init.lua b/mods/MAPGEN/mcl_villages/init.lua index 4a5da47bf..e837ab027 100644 --- a/mods/MAPGEN/mcl_villages/init.lua +++ b/mods/MAPGEN/mcl_villages/init.lua @@ -304,7 +304,6 @@ local function paths(plan, minp, maxp) if path then for _, pos in pairs(path) do pos.y = pos.y - 1 - local surface_mat = minetest.get_node(pos).name if surface_mat == "mcl_core:sand" or surface_mat == "mcl_core:redsand" then minetest.swap_node(pos, {name = "mcl_core:sandstonesmooth2"})