From d58f9930d1689703dd8ccfd2e9e077ad7dc96089 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Fri, 5 Jun 2015 20:30:48 +0200 Subject: [PATCH] Fix player_attached error on some subgames --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/init.lua b/init.lua index 85d9f9a..535bfc3 100644 --- a/init.lua +++ b/init.lua @@ -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},