Fix waypoint initialization order

This commit is contained in:
SmallJoker
2021-08-29 07:47:32 +02:00
parent 3fffa41eaf
commit b1c85a2cb8
3 changed files with 5 additions and 6 deletions

View File

@ -330,8 +330,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
end)
minetest.register_on_joinplayer(function(player)
-- waypoints_temp must be initialized before the general unified_inventory
-- joinplayer callback is run for updating the inventory
table.insert(minetest.registered_on_joinplayers, 1, function(player)
local player_name = player:get_player_name()
local waypoints = get_waypoint_data(player)