]> git.deb.at Git - rhonda/impostor.git/commit
Fix KeyNotFoundException for nonexistent vents (#413)
authorminiduikboot <mini@duikbo.at>
Mon, 17 May 2021 17:13:54 +0000 (19:13 +0200)
committerGitHub <noreply@github.com>
Mon, 17 May 2021 17:13:54 +0000 (17:13 +0000)
commita13fee108f36d828e46bfd2315457b85b87ec35e
tree61f2b5f6b5db5b21524c96132b7499c6dd67bb1b
parentadc0e6fe9bff7d0f956a137ccf33d7ae603f5a0f
Fix KeyNotFoundException for nonexistent vents (#413)

Some mods add extra vents that don't yet exist, this commit checks if a
given vent exists and if it doesn't, throw an AC violation instead of
disconnecting the player

One downside is that the Enter/ExitVent events are no longer called, but
this would require the vent in that event to become nullable
src/Impostor.Server/Net/Inner/Objects/Components/InnerPlayerPhysics.cs