pac3
pac3 copied to clipboard
pac.LocalPlayer sometimes can be NULL
[PAC3] lua/pac3/editor/client/logic.lua:56: Tried to use a NULL entity!
1. EyePos - [C]:-1
2. Call - lua/pac3/editor/client/logic.lua:56
3. OpenEditor - lua/pac3/editor/client/init.lua:160
4. unknown - lua/pac3/editor/client/init.lua:290
5. unknown - lua/includes/modules/concommand.lua:54
Looks like this hook attempts to prevent that from happening, but it might be better to just call LocalPlayer() like gmod devs expect users to. https://github.com/CapsAdmin/pac3/blob/e7dddc6f37961e375191fbd6e1cd035b54ef1b00/lua/pac3/core/client/init.lua#L62-L75