Skip to content

Commit

Permalink
Fixed Warp System Kicking From Car
Browse files Browse the repository at this point in the history
  • Loading branch information
Cooldude2606 committed Jan 15, 2018
1 parent bc0746e commit 62950fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Addons/Guis/warp-system.lua
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ local go_to_warp = Gui.inputs.add{
local cooldown = _warps().cooldowns[event.player_index] or 0
local warp = _warps().warps[event.element.parent.name]
if cooldown > 0 then player_return({'warp-system.cooldown',cooldown},nil,event) return end
if player.vehicle then player.vehicle.set_driver() end
if player.vehicle then player.vehicle.set_passenger() end
if player.vehicle then player.vehicle.set_driver(nil) end
if player.vehicle then player.vehicle.set_passenger(nil) end
if player.vehicle then return end
player.teleport(warp.surface.find_non_colliding_position('player',warp.position,32,1),warp.surface)
if not Ranking.get_rank(player):allowed('always-warp') then
Expand Down

0 comments on commit 62950fb

Please sign in to comment.