From: paramat Date: Thu, 1 Feb 2018 01:12:56 +0000 (+0000) Subject: Item entity: Prevent motion in ignore nodes X-Git-Tag: 5.0.0~597 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=520293b4cbcdc0ae3c435150114dfe0be7f9582d;p=oweals%2Fminetest.git Item entity: Prevent motion in ignore nodes --- diff --git a/builtin/game/item_entity.lua b/builtin/game/item_entity.lua index 06e67762c..a18467764 100644 --- a/builtin/game/item_entity.lua +++ b/builtin/game/item_entity.lua @@ -147,9 +147,9 @@ core.register_entity(":__builtin:item", { }) local vel = self.object:getvelocity() local def = node and core.registered_nodes[node.name] - -- Ignore is nil -> stop until the block loaded - local is_moving = (def and not def.walkable) or - vel.x ~= 0 or vel.y ~= 0 or vel.z ~= 0 + -- Avoid entity falling into ignore nodes or unloaded areas + local is_moving = node and node.name ~= "ignore" and + ((def and not def.walkable) or vel.x ~= 0 or vel.y ~= 0 or vel.z ~= 0) local is_slippery = false if def and def.walkable then