More use of default.player_attached

This commit is contained in:
SmallJoker 2014-11-08 20:11:51 +01:00
parent 2929d2ceb7
commit 573d56de1a

@ -43,6 +43,7 @@ function boost_cart.cart:on_rightclick(clicker)
clicker:set_detach() clicker:set_detach()
elseif not self.driver then elseif not self.driver then
self.driver = player_name self.driver = player_name
default.player_attached[player_name] = true
clicker:set_attach(self.object, "", {x=0, y=3, z=0}, {x=0, y=0, z=0}) clicker:set_attach(self.object, "", {x=0, y=3, z=0}, {x=0, y=0, z=0})
end end
end end