CFC-Servers / CFC-Servers/cfc_spawn_protection

Player leaving during spawn protection throws error

Open
#17 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Lua
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

From CFC Bot:
Error
`Tried to use a NULL entity!`
Source File
`addons/cfc_spawn_protection/lua/autorun/server/sv_spawn_protection.lua:93`

This line is a `ply:ChatPrint("...")`

I believe that this is simply caused by a player leaving while in spawn protection.

Easy fix.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in addons/cfc_spawn_protection/lua/autorun/server/sv_spawn_protection.lua at line 93, where the ply:ChatPrint call is reported. Check the behavior when a player leaves during spawn protection and verify that the error no longer occurs. Done means the NULL entity error is prevented in that scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
game-dev
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.