some changes

This commit is contained in:
Gurge44 committed 2025-03-09 19:39:07 +01:00
1 parent ac31a8c79b
commit 736235fbb3
23 files changed
+195 -89

No files matched your search

+2 -2
View File
@@ -106,7 +106,7 @@ internal static class ExtendedPlayerControl
public static void RpcSetVentInteraction(this PlayerControl player)
{
var ventilationSystem = ShipStatus.Instance.Systems[SystemTypes.Ventilation].TryCast<VentilationSystem>();
var ventilationSystem = ShipStatus.Instance.Systems[SystemTypes.Ventilation].CastFast<VentilationSystem>();
if (ventilationSystem != null) VentilationSystemDeterioratePatch.SerializeV2(ventilationSystem, player);
}
@@ -312,7 +312,7 @@ internal static class ExtendedPlayerControl
(byte, byte) key = (player.PlayerId, GetClientById(clientId).Character.PlayerId);
StartGameHostPatch.RpcSetRoleReplacer.RoleMap[key] = (role, StartGameHostPatch.RpcSetRoleReplacer.RoleMap[key].CustomRole);
}
if (AmongUsClient.Instance.ClientId == clientId)
{
player.SetRole(role);