]> git.deb.at Git - rhonda/impostor.git/commit
Accept RPC's called on GameManager
authorminiduikboot <mini@duikbo.at>
Thu, 13 Jun 2024 18:52:25 +0000 (20:52 +0200)
committerminiduikboot <mini@duikbo.at>
Thu, 13 Jun 2024 18:52:25 +0000 (20:52 +0200)
commitda0ee81b5d944c195dbb41dc42db450598393aba
tree1978957441f63a4c3c0ed9b086e4cb55d8ffbe1b
parent468a71d01e6adea224d30843a995c0dcf0fc5e8c
Accept RPC's called on GameManager

Previously Impostor would just throw when a method was called on a
GameManager, but this caused issues with client mods that did just this,
even through vanilla never calls an RPC on GameManager.

This commit changes that throw statement to pass the exception to the
custom message handler/anticheat instead, which is also how it works for
the other NetObjects
src/Impostor.Server/Net/Inner/Objects/GameManager/InnerGameManager.cs
src/Impostor.Server/Net/Inner/Objects/GameManager/Logic/GameLogicComponent.cs