mirror of
https://github.com/SmallJoker/boost_cart.git
synced 2024-11-24 07:33:44 +01:00
More use of default.player_attached
This commit is contained in:
parent
2929d2ceb7
commit
573d56de1a
1
init.lua
1
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user