Fixed Warning

This commit is contained in:
Moji ( 2021-06-22 14:28:22 +02:00 committed by GitHub
parent ed28a1cc2e
commit 0f4f140b68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ minetest.register_globalstep(function(dtime)
-- Only count riders who are still logged in.
local newriding = {}
for _,p in ipairs(minetest.get_connected_players()) do
local pos = p:getpos()
local pos = p:get_pos()
local name = p:get_player_name()
newriding[name] = riding[name]
-- If the player is indeed riding, update their position.