From 932e2dc6f8ddfb2d6048ff4dae12839bc140c5ae Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 29 May 2017 20:10:51 +0200 Subject: [PATCH] Minor item entity code cleanup --- mods/ENTITIES/mcl_item_entity/init.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mods/ENTITIES/mcl_item_entity/init.lua b/mods/ENTITIES/mcl_item_entity/init.lua index 57fdf83e68..a08f4980b4 100644 --- a/mods/ENTITIES/mcl_item_entity/init.lua +++ b/mods/ENTITIES/mcl_item_entity/init.lua @@ -288,7 +288,6 @@ core.register_entity(":__builtin:item", { always_collect = self.always_collect, age = self.age, dropped_by = self.dropped_by, - collect = self._collect }) end, @@ -440,8 +439,7 @@ core.register_entity(":__builtin:item", { end -- If node is not registered or node is walkably solid and resting on nodebox - p.y = p.y - 0.5 - local nn = minetest.get_node(p).name + local nn = minetest.get_node({x=p.x, y=p.y-0.5, z=p.z}).name local v = self.object:getvelocity() if not core.registered_nodes[nn] or core.registered_nodes[nn].walkable and v.y == 0 then