mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
fix kick
This commit is contained in:
1 parent
eb9abd9a3e
commit
d63821128f
2 files changed
+8
-6
No files matched your search
@@ -414,6 +414,7 @@ public enum CustomRoles
|
||||
CovenMember,
|
||||
Death, // Reaper changes to Death
|
||||
Dreamweaver,
|
||||
Empress,
|
||||
Enchanter,
|
||||
Goddess,
|
||||
Illusionist,
|
||||
@@ -433,13 +434,13 @@ public enum CustomRoles
|
||||
// FFA
|
||||
Killer,
|
||||
|
||||
// Stop And Go
|
||||
// Move And Stop
|
||||
Tasker,
|
||||
|
||||
// Hot Potato
|
||||
Potato,
|
||||
|
||||
// Hide And Seek
|
||||
// H&S
|
||||
Hider,
|
||||
Seeker,
|
||||
Fox,
|
||||
|
||||
@@ -712,10 +712,11 @@ internal static class InnerNetClientSpawnPatch
|
||||
// Only for vanilla
|
||||
if (!client.Character.IsModdedClient())
|
||||
{
|
||||
MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(LobbyBehaviour.Instance.NetId, (byte)RpcCalls.LobbyTimeExpiring, SendOption.None, client.Id);
|
||||
writer.WritePacked((int)GameStartManagerPatch.Timer);
|
||||
writer.Write(false);
|
||||
AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
// This kicks the host now on vanilla regions
|
||||
// MessageWriter writer = AmongUsClient.Instance.StartRpcImmediately(LobbyBehaviour.Instance.NetId, (byte)RpcCalls.LobbyTimeExpiring, SendOption.None, client.Id);
|
||||
// writer.WritePacked((int)GameStartManagerPatch.Timer);
|
||||
// writer.Write(false);
|
||||
// AmongUsClient.Instance.FinishRpcImmediately(writer);
|
||||
}
|
||||
// Non-host modded client
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user