Skip to content

Commit

Permalink
Freeplay: fix character destructible
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerkiz committed Nov 10, 2024
1 parent e29d2a4 commit 51e332e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/freeplay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ local on_player_created = function (event)
util.remove_safe(player, this.crashed_debris_items)
player.get_main_inventory().sort_and_merge()

if player.character then
if player.character and not this.skip_intro then
player.character.destructible = false
end

Expand Down Expand Up @@ -243,7 +243,7 @@ local on_cutscene_cancelled = function (event)
if player.gui.screen.skip_cutscene_label then
player.gui.screen.skip_cutscene_label.destroy()
end
if player.character then
if player.character and not this.skip_intro then
player.character.destructible = true
end
BottomFrame.toggle_player_frame(player, true)
Expand Down

0 comments on commit 51e332e

Please sign in to comment.