Skip to content

Commit b93fbcb

Browse files
committed
editor fix
if start with pac disabled, regain pac.LocalPlayer reference when opening editor
1 parent f287762 commit b93fbcb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/pac3/editor/client/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ local showInEditor = CreateConVar("pac_show_in_editor", "1", {FCVAR_ARCHIVE}, "S
9393
pace.pac_show_uniqueid = CreateConVar("pac_show_uniqueid", "0", {FCVAR_ARCHIVE}, "Show uniqueids of parts inside editor")
9494

9595
function pace.OpenEditor()
96+
if not pac.LocalPlayer then pac.LocalPlayer = LocalPlayer() end
9697
pace.CloseEditor()
9798

9899
if hook.Run("PrePACEditorOpen", pac.LocalPlayer) == false then return end

0 commit comments

Comments
 (0)