A few more security checks
This commit is contained in:
@@ -528,6 +528,8 @@ namespace Barotrauma
|
|||||||
|
|
||||||
public override void ReadNetworkData(NetIncomingMessage message)
|
public override void ReadNetworkData(NetIncomingMessage message)
|
||||||
{
|
{
|
||||||
|
if (GameMain.Server != null) return;
|
||||||
|
|
||||||
AiState newState = AiState.None;
|
AiState newState = AiState.None;
|
||||||
Vector2 newWallAttackPos = Vector2.Zero;
|
Vector2 newWallAttackPos = Vector2.Zero;
|
||||||
float wanderAngle;
|
float wanderAngle;
|
||||||
|
|||||||
@@ -670,6 +670,8 @@ namespace Barotrauma.Items.Components
|
|||||||
|
|
||||||
public override void ReadNetworkData(Networking.NetworkEventType type, Lidgren.Network.NetIncomingMessage message, float sendingTime)
|
public override void ReadNetworkData(Networking.NetworkEventType type, Lidgren.Network.NetIncomingMessage message, float sendingTime)
|
||||||
{
|
{
|
||||||
|
if (GameMain.Server != null) return;
|
||||||
|
|
||||||
bool isDocked = message.ReadBoolean();
|
bool isDocked = message.ReadBoolean();
|
||||||
|
|
||||||
if (isDocked)
|
if (isDocked)
|
||||||
|
|||||||
Reference in New Issue
Block a user