aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/item_entity.lua
diff options
context:
space:
mode:
authorSmallJoker <SmallJoker@users.noreply.github.com>2018-07-17 20:17:54 +0200
committerGitHub <noreply@github.com>2018-07-17 20:17:54 +0200
commitade7a1cbcf7156ebddb12bd2ec2ea60818d72b19 (patch)
tree93200b6fad15c936cb213dc824ed761088eeb1a0 /builtin/game/item_entity.lua
parenta0635f602487944d25c03efecee61cecf3bdb5ab (diff)
downloadminetest-ade7a1cbcf7156ebddb12bd2ec2ea60818d72b19.tar.gz
minetest-ade7a1cbcf7156ebddb12bd2ec2ea60818d72b19.tar.bz2
minetest-ade7a1cbcf7156ebddb12bd2ec2ea60818d72b19.zip
Builtin: Replace deprecated function calls (#7561)
Diffstat (limited to 'builtin/game/item_entity.lua')
-rw-r--r--builtin/game/item_entity.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/item_entity.lua b/builtin/game/item_entity.lua
index 4dca6117d..a330e8723 100644
--- a/builtin/game/item_entity.lua
+++ b/builtin/game/item_entity.lua
@@ -152,7 +152,7 @@ core.register_entity(":__builtin:item", {
return
end
- local vel = self.object:getvelocity()
+ local vel = self.object:get_velocity()
local def = node and core.registered_nodes[node.name]
local is_moving = (def and not def.walkable) or
vel.x ~= 0 or vel.y ~= 0 or vel.z ~= 0