forked from mtcontrib/boost_cart
Fix edge case crash due nil old_pos, remove player_api warning
This commit is contained in:
4
init.lua
4
init.lua
@ -25,8 +25,8 @@ if not default.player_attached then
|
||||
default.player_attached = {}
|
||||
end
|
||||
|
||||
minetest.after(1, function()
|
||||
boost_cart.old_player_model = type(player_api) ~= "table"
|
||||
minetest.after(0.5, function()
|
||||
boost_cart.old_player_model = not minetest.global_exists("player_api")
|
||||
end)
|
||||
|
||||
dofile(boost_cart.modpath.."/functions.lua")
|
||||
|
Reference in New Issue
Block a user