mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-17 01:13:05 +00:00
Update WorldObjectsHashMessage.cs
This commit is contained in:
parent
206dadcfdb
commit
1146197f56
@ -14,13 +14,16 @@ internal class WorldObjectsHashMessage : QSBMessage<(string managerName, string
|
||||
|
||||
public override void OnReceiveRemote()
|
||||
{
|
||||
var serverHash = QSBWorldSync.ManagerHashes[Data.managerName];
|
||||
|
||||
if (serverHash != Data.hash)
|
||||
Delay.RunWhen(() => QSBWorldSync.AllObjectsReady, () =>
|
||||
{
|
||||
// oh fuck oh no oh god
|
||||
DebugLog.ToConsole($"Kicking {From} because their WorldObjects hash for {Data.managerName} is wrong. (server:{serverHash}, client:{Data.hash})", MessageType.Error);
|
||||
new PlayerKickMessage(From, $"WorldObject hash error for {Data.managerName}. (Server:{serverHash}, Client:{Data.hash})").Send();
|
||||
}
|
||||
var serverHash = QSBWorldSync.ManagerHashes[Data.managerName];
|
||||
|
||||
if (serverHash != Data.hash)
|
||||
{
|
||||
// oh fuck oh no oh god
|
||||
DebugLog.ToConsole($"Kicking {From} because their WorldObjects hash for {Data.managerName} is wrong. (server:{serverHash}, client:{Data.hash})", MessageType.Error);
|
||||
new PlayerKickMessage(From, $"WorldObject hash error for {Data.managerName}. (Server:{serverHash}, Client:{Data.hash})").Send();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user