1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Builtin: Replace deprecated function calls (#7561)

This commit is contained in:
SmallJoker 2018-07-17 20:17:54 +02:00 committed by GitHub
parent a0635f6024
commit ade7a1cbcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 19 additions and 19 deletions

View file

@ -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