Fixed turret syncing, clients don't get a notification about changed permissions if they're assigned the same permissions they already have
This commit is contained in:
@@ -390,7 +390,7 @@ namespace Barotrauma.Items.Components
|
|||||||
public void ServerWrite(NetBuffer msg, Client c, object[] extraData = null)
|
public void ServerWrite(NetBuffer msg, Client c, object[] extraData = null)
|
||||||
{
|
{
|
||||||
//ID of the launched projectile
|
//ID of the launched projectile
|
||||||
msg.Write((UInt16)extraData[2]);
|
msg.Write(((Item)extraData[2]).ID);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ClientRead(ServerNetObject type, NetBuffer msg, float sendingTime)
|
public void ClientRead(ServerNetObject type, NetBuffer msg, float sendingTime)
|
||||||
|
|||||||
@@ -601,6 +601,7 @@ namespace Barotrauma.Networking
|
|||||||
|
|
||||||
private void SetPermissions(ClientPermissions newPermissions)
|
private void SetPermissions(ClientPermissions newPermissions)
|
||||||
{
|
{
|
||||||
|
if (newPermissions == permissions) return;
|
||||||
GUIMessageBox.MessageBoxes.RemoveAll(mb => mb.UserData as string == "permissions");
|
GUIMessageBox.MessageBoxes.RemoveAll(mb => mb.UserData as string == "permissions");
|
||||||
|
|
||||||
string msg = "";
|
string msg = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user