mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
fix eyes staying when mob was killed
This commit is contained in:
parent
b4f2cb61d3
commit
ba383091ad
2 changed files with 3 additions and 12 deletions
|
@ -31,12 +31,12 @@ minetest.register_entity("mobs_mc:ender_eyes", {
|
|||
textures = {
|
||||
"mobs_mc_enderman_eyes.png",
|
||||
},
|
||||
on_activate = function(self)
|
||||
minetest.after(0.1, function()
|
||||
on_step = function(self)
|
||||
if self and self.object then
|
||||
if not self.object:get_attach() then
|
||||
self.object:remove()
|
||||
end
|
||||
end)
|
||||
end
|
||||
end,
|
||||
glow = 50,
|
||||
})
|
||||
|
|
|
@ -18,15 +18,6 @@ minetest.register_entity("mobs_mc:spider_eyes", {
|
|||
textures = {
|
||||
"mobs_mc_spider_eyes.png",
|
||||
},
|
||||
on_activate = function(self)
|
||||
minetest.after(0.1, function()
|
||||
if self and self.object then
|
||||
if not self.object:get_attach() then
|
||||
self.object:remove()
|
||||
end
|
||||
end
|
||||
end)
|
||||
end,
|
||||
on_step = function(self)
|
||||
if self and self.object then
|
||||
if not self.object:get_attach() then
|
||||
|
|
Loading…
Reference in a new issue