Fixed Warning
This commit is contained in:
parent
ed28a1cc2e
commit
0f4f140b68
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user