Cleanup again

This commit is contained in:
kay27 2022-01-19 04:09:19 +04:00
parent bc4cb14a76
commit a36f3ba7d0
2 changed files with 22 additions and 22 deletions

View File

@ -61,7 +61,7 @@ local pos_to_dimension = mcl_worlds.pos_to_dimension
-- MineClone 2.
-- mc_dimension is one of "overworld", "nether", "end" (default: "overworld").
function mcl_worlds.layer_to_y(layer, mc_dimension)
if mc_dimension == "overworld" or mc_dimension == nil then
if not mc_dimension or mc_dimension == "overworld" then
return layer + min1
elseif mc_dimension == "nether" then
return layer + min3