diff --git a/README.md b/README.md index d09bd6a..b1d6d53 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,6 @@ Features: remove_items in minetest.conf (-1 disables it) - Particle effects added - Dropped items keep sliding when on ice +- Items stuck inside solid nodes move to nearest empty space License: MIT diff --git a/depends.txt b/depends.txt index 7c506cf..4ad96d5 100644 --- a/depends.txt +++ b/depends.txt @@ -1,2 +1 @@ default -mobs? \ No newline at end of file diff --git a/init.lua b/init.lua index 918ec47..8fb9627 100644 --- a/init.lua +++ b/init.lua @@ -281,9 +281,7 @@ core.register_entity(":__builtin:item", { on_activate = function(self, staticdata, dtime_s) - -- special function to fast remove entities (xanadu only) - if (mobs and mobs.entity and mobs.entity == false) - or not self then + if not self then self.object:remove()