More sanity checks to make sure clients aren't doing something they're not allowed to:
- AICharacter, hull, structure and submarine updates from clients are ignored - character updates from anyone else than the client controlling the character are ignored - players can't pick/drop items from anyone else's inventory (unless the target is unconscious/stunned/cuffed) - server has authority over reactor temperature
This commit is contained in:
@@ -227,7 +227,10 @@ namespace Barotrauma.Networking
|
||||
|
||||
try
|
||||
{
|
||||
e.ReadNetworkData(eventType, message, sendingTime, out data);
|
||||
if (!e.ReadNetworkData(eventType, message, sendingTime, out data))
|
||||
{
|
||||
resend = false;
|
||||
}
|
||||
}
|
||||
catch (Exception exception)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user