From 709f2490e53c2bbe6a048f6154d6e2f1a1cd7b1c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 30 Nov 2016 10:23:37 +0000 Subject: [PATCH] remove doors and mobs soft dependency --- depends.txt | 2 -- init.lua | 9 --------- 2 files changed, 11 deletions(-) diff --git a/depends.txt b/depends.txt index 9023044..8a8d2a2 100644 --- a/depends.txt +++ b/depends.txt @@ -1,5 +1,3 @@ default -doors? -mobs? intllib? lucky_block? \ No newline at end of file diff --git a/init.lua b/init.lua index 54d1e7d..8d5328e 100644 --- a/init.lua +++ b/init.lua @@ -586,15 +586,6 @@ minetest.register_entity("protector:display", { textures = {"protector:display_node"}, timer = 0, - on_activate = function(self, staticdata) - - -- Xanadu server only - if (mobs and mobs.entity and mobs.entity == false) - or not self then - self.object:remove() - end - end, - on_step = function(self, dtime) self.timer = self.timer + dtime