summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-11-30 10:23:37 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-11-30 10:23:37 +0000
commit709f2490e53c2bbe6a048f6154d6e2f1a1cd7b1c (patch)
treed9d11514c26dc4275fe1e725cf6ad5afa5d28034
parentc0e02303670645e8b49160fdc73a1d31760be27f (diff)
remove doors and mobs soft dependency
-rw-r--r--depends.txt2
-rw-r--r--init.lua9
2 files changed, 0 insertions, 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