Fix player_attached error on some subgames

This commit is contained in:
SmallJoker 2015-06-05 20:30:48 +02:00
parent a7fd733819
commit d58f9930d1

View File

@ -20,6 +20,11 @@ if mesecon then
dofile(boost_cart.modpath.."/detector.lua")
end
-- Support for non-default games
if not default.player_attached then
default.player_attached = {}
end
boost_cart.cart = {
physical = false,
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},