fix tail particles

This commit is contained in:
TenPlus1 2016-11-23 09:25:41 +00:00
parent 37c787d514
commit b6fcc31a10
1 changed files with 6 additions and 6 deletions

12
api.lua
View File

@ -2745,11 +2745,11 @@ function mobs:register_arrow(name, def)
and def.tail == 1 and def.tail == 1
and def.tail_texture then and def.tail_texture then
effect(pos, 1, def.tail_texture, -- effect(pos, 1, def.tail_texture,
def.tail_size or 5, -- def.tail_size or 5,
def.tail_size or 10, -- def.tail_size or 10,
0, 0) -- 0 radius and 0 gravity to just hover -- 0, 0) -- 0 radius and 0 gravity to just hover
--[[
minetest.add_particlespawner({ minetest.add_particlespawner({
amount = 1, amount = 1,
time = 0.25, time = 0.25,
@ -2764,7 +2764,7 @@ function mobs:register_arrow(name, def)
minsize = def.tail_size or 5, minsize = def.tail_size or 5,
maxsize = def.tail_size or 10, maxsize = def.tail_size or 10,
texture = def.tail_texture, texture = def.tail_texture,
})]] })
end end
if self.hit_node then if self.hit_node then