From 99cc6cf307951d4a0ea65466e014ffcbaf37f13e Mon Sep 17 00:00:00 2001 From: epCode Date: Thu, 6 Oct 2022 16:47:10 +0000 Subject: [PATCH] Remove Unecessary code in spider for eye removal. --- mods/ENTITIES/mobs_mc/spider.lua | 8 -------- 1 file changed, 8 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/spider.lua b/mods/ENTITIES/mobs_mc/spider.lua index 66b4e2853..751937f89 100644 --- a/mods/ENTITIES/mobs_mc/spider.lua +++ b/mods/ENTITIES/mobs_mc/spider.lua @@ -55,14 +55,6 @@ local spider = { minetest.add_entity(self.object:get_pos(), "mobs_mc:spider_eyes"):set_attach(self.object, "body.head", vector.new(0,-0.98,2), vector.new(90,180,180)) end end, - on_die = function(self) - for n = 1, #self.object:get_children() do - local obj = self.object:get_children()[n] - if obj:get_luaentity() and self.object:get_luaentity().name == "mobs_mc:spider_eyes" then - obj:remove() - end - end - end, collisionbox = {-0.7, -0.01, -0.7, 0.7, 0.89, 0.7}, visual = "mesh", mesh = "mobs_mc_spider.b3d",