mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-26 09:59:33 +01:00
[mcl_mobspawners] fix warnings
This commit is contained in:
parent
e91ee174a4
commit
0113d290b7
1 changed files with 5 additions and 2 deletions
|
@ -1,11 +1,14 @@
|
|||
local S = minetest.get_translator("mcl_mobspawners")
|
||||
|
||||
local math = math
|
||||
local table = table
|
||||
|
||||
mcl_mobspawners = {}
|
||||
|
||||
local default_mob = "mobs_mc:pig"
|
||||
|
||||
-- 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 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
|
||||
local objs = minetest.get_objects_inside_radius(pos, 8)
|
||||
local count = 0
|
||||
local ent = nil
|
||||
local ent
|
||||
|
||||
|
||||
local timer = minetest.get_node_timer(pos)
|
||||
|
|
Loading…
Reference in a new issue