Fix typo in passing newvel to set_velocity in item phys

This commit is contained in:
wallabra 2022-02-09 03:12:56 -03:00
parent 4105e07670
commit 6f6b70dedc
Signed by untrusted user: Gustavo6046
GPG Key ID: 5182FABAA5E139B3
1 changed files with 1 additions and 1 deletions

View File

@ -850,7 +850,7 @@ minetest.register_entity(":__builtin:item", {
y = oldvel.y,
z = oldvel.z - oldvel.z * ground_drag * dtime
}
self.object:set_velocity(new_vel)
self.object:set_velocity(newvel)
end
else
if self._magnet_active == false then