Fix luacheck warning
authorsfan5 <sfan5@live.de>
Tue, 16 Jul 2019 21:17:14 +0000 (23:17 +0200)
committersfan5 <sfan5@live.de>
Tue, 16 Jul 2019 21:17:14 +0000 (23:17 +0200)
mods/dungeon_loot/mapgen.lua

index 06b3bd7936ecb4e02cb58b32d9f118c63bde1d95..4a19f3cf17f0423c73e970858d9a9782f854cd52 100644 (file)
@@ -53,7 +53,7 @@ local function find_walls(cpos)
        end
 
        local biome = minetest.get_biome_data(cpos)
-       local biome = biome and minetest.get_biome_name(biome.biome) or ""
+       biome = biome and minetest.get_biome_name(biome.biome) or ""
        local type = "normal"
        if biome:find("desert") == 1 then
                type = "desert"