Add logging

This commit is contained in:
ancientmarinerdev 2023-01-28 00:24:33 +00:00 committed by Gitea
parent 634379dfe9
commit 1dc7cab6be

View file

@ -496,6 +496,8 @@ end
local two_pi = 2 * math.pi local two_pi = 2 * math.pi
local function get_next_mob_spawn_pos(pos) local function get_next_mob_spawn_pos(pos)
-- TODO We should consider spawning something a little further away sporadically.
-- It would be good for sky farms and variance, rather than all being on the 24 - 32 block away radius
local distance = math_random(MOB_SPAWN_ZONE_INNER + 1, MOB_SPAWN_ZONE_MIDDLE) local distance = math_random(MOB_SPAWN_ZONE_INNER + 1, MOB_SPAWN_ZONE_MIDDLE)
local angle = math_random() * two_pi local angle = math_random() * two_pi
local xoff = math_round(distance * math_cos(angle)) local xoff = math_round(distance * math_cos(angle))