Skip to content

Commit

Permalink
get water_level setting as number
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Sep 11, 2024
1 parent 2988828 commit 97ad5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobs_fish.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Add extra areas where fish spawn

local l_spawn_chance = 10000
local l_water_level = minetest.settings:get("water_level")
local l_water_level = tonumber(minetest.settings:get("water_level")) or 1
local l_max_height_Earth = 777 -- Vacuum sometimes extends well below 1k
local l_max_height_Mars = 15777
local l_min_height_Mars = 11111
Expand Down

0 comments on commit 97ad5d1

Please sign in to comment.