Unstable v0.19.3.0
This commit is contained in:
@@ -55,18 +55,18 @@ namespace Barotrauma.Items.Components
|
||||
public void ServerEventWrite(IWriteMessage msg, Client c, NetEntityEvent.IData extraData = null)
|
||||
{
|
||||
var componentData = ExtractEventData<EventData>(extraData);
|
||||
msg.Write((byte)componentData.State);
|
||||
msg.Write(timeUntilReady);
|
||||
msg.WriteByte((byte)componentData.State);
|
||||
msg.WriteSingle(timeUntilReady);
|
||||
uint recipeHash = fabricatedItem?.RecipeHash ?? 0;
|
||||
msg.Write(recipeHash);
|
||||
msg.WriteUInt32(recipeHash);
|
||||
UInt16 userId = fabricatedItem is null || user is null ? (UInt16)0 : user.ID;
|
||||
msg.Write(userId);
|
||||
msg.WriteUInt16(userId);
|
||||
|
||||
var reachedLimits = fabricationLimits.Where(kvp => kvp.Value <= 0);
|
||||
msg.Write((ushort)reachedLimits.Count());
|
||||
msg.WriteUInt16((ushort)reachedLimits.Count());
|
||||
foreach (var kvp in reachedLimits)
|
||||
{
|
||||
msg.Write(kvp.Key);
|
||||
msg.WriteUInt32(kvp.Key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user