Update spawning.lua

This commit is contained in:
oilboi 2020-06-15 09:07:53 -04:00
parent d5223fcc5b
commit 99b22a1838

View File

@ -68,6 +68,7 @@ local mobs
local spawner local spawner
local mob_spawning local mob_spawning
local light_level local light_level
local mob_pos
local function spawn_mobs(player) local function spawn_mobs(player)
pos = player:get_pos() pos = player:get_pos()
@ -90,7 +91,7 @@ local function spawn_mobs(player)
--print(dump(spawner)) --print(dump(spawner))
if table.getn(spawner) > 0 then if table.getn(spawner) > 0 then
local mob_pos = spawner[1] mob_pos = spawner[1]
mob_pos.y = mob_pos.y + 1 mob_pos.y = mob_pos.y + 1
--aether spawning --aether spawning
if mob_pos.y >= 21000 then if mob_pos.y >= 21000 then