During my debugging process, I found that when a player_hosted with shadow_thrall_parasitehat is deleted using console commands, it may cause the server to crash (the crash does not always occur immediately—it may require spawning and deleting the entity multiple times to trigger).
While this bug has little impact on regular players, it could cause some trouble for mod developers.
Steps to Reproduce
- host = c_spawn("player_hosted")
- local mask = SpawnPrefab("shadow_thrall_parasitehat")
- host.components.inventory:GiveItem(mask)
-
host.components.inventory:Equip(mask)
You may need to spawn the entity multiple times and then usec_removeall("player_hosted")—though other deletion commands may also trigger the crash.

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now