From 41d7e513e71698393ca9de70b7b1006f0de0b39a Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 14 Dec 2019 03:38:00 +0100 Subject: [PATCH] Make variable local --- mods/MAPGEN/mcl_structures/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index bb51004ae..6e6ca5856 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -84,7 +84,7 @@ mcl_structures.generate_igloo = function(pos) if success and r == 1 then -- Select basement depth local dim = mcl_worlds.pos_to_dimension(pos) - buffer = pos.y - (mcl_vars.mg_lava_overworld_max + 10) + local buffer = pos.y - (mcl_vars.mg_lava_overworld_max + 10) if dim == "nether" then buffer = pos.y - (mcl_vars.mg_lava_nether_max + 10) elseif dim == "end" then