1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02: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
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