1
0
Fork 0

Merge pull request 'fix_spider_eyes_memory_fault+die' (#2721) from fix_spider_eyes_memory_fault+die into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2721
Reviewed-by: cora <cora@noreply.git.minetest.land>
icebergs
epCode 2022-10-06 17:45:29 +00:00
commit 5507f62142
2 changed files with 6 additions and 6 deletions

View File

@ -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,
})

View File

@ -18,12 +18,12 @@ minetest.register_entity("mobs_mc:spider_eyes", {
textures = {
"mobs_mc_spider_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,
})