Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Item entity: Prevent motion in ignore nodes
  • Loading branch information
paramat committed Feb 5, 2018
1 parent 7b2687f commit 520293b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/game/item_entity.lua
Expand Up @@ -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
Expand Down

1 comment on commit 520293b

@paramat
Copy link
Contributor Author

@paramat paramat commented on 520293b Feb 10, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beginning to think it's best to delete dropped items in ignore, just in case they 'stick' somehow out of player reach. Would also be more consistent with #7024

Please sign in to comment.