[mcl_mobspawners] fix warnings

This commit is contained in:
AFCMS 2021-05-22 23:19:31 +02:00
parent e91ee174a4
commit 0113d290b7

View file

@ -1,11 +1,14 @@
local S = minetest.get_translator("mcl_mobspawners") local S = minetest.get_translator("mcl_mobspawners")
local math = math
local table = table
mcl_mobspawners = {} mcl_mobspawners = {}
local default_mob = "mobs_mc:pig" local default_mob = "mobs_mc:pig"
-- Mob spawner -- Mob spawner
local spawner_default = default_mob.." 0 15 4 15" --local spawner_default = default_mob.." 0 15 4 15"
local function get_mob_textures(mob) local function get_mob_textures(mob)
local list = minetest.registered_entities[mob].texture_list local list = minetest.registered_entities[mob].texture_list
@ -160,7 +163,7 @@ local spawn_mobs = function(pos, elapsed)
-- check objects inside 8×8 area around spawner -- check objects inside 8×8 area around spawner
local objs = minetest.get_objects_inside_radius(pos, 8) local objs = minetest.get_objects_inside_radius(pos, 8)
local count = 0 local count = 0
local ent = nil local ent
local timer = minetest.get_node_timer(pos) local timer = minetest.get_node_timer(pos)