diff --git a/docs/Packets/C2-2F-MoneyDroppedExtended_by-server.md b/docs/Packets/C1-2F-MoneyDroppedExtended_by-server.md similarity index 71% rename from docs/Packets/C2-2F-MoneyDroppedExtended_by-server.md rename to docs/Packets/C1-2F-MoneyDroppedExtended_by-server.md index a2517727b..253973c0a 100644 --- a/docs/Packets/C2-2F-MoneyDroppedExtended_by-server.md +++ b/docs/Packets/C1-2F-MoneyDroppedExtended_by-server.md @@ -1,4 +1,4 @@ -# C2 2F - MoneyDroppedExtended (by server) +# C1 2F - MoneyDroppedExtended (by server) ## Is sent when @@ -12,9 +12,9 @@ The client adds the money to the ground. | Index | Length | Data Type | Value | Description | |-------|--------|-----------|-------|-------------| -| 0 | 1 | Byte | 0xC2 | [Packet type](PacketTypes.md) | -| 1 | 2 | Short | 12 | Packet header - length of the packet | -| 3 | 1 | Byte | 0x2F | Packet header - packet type identifier | +| 0 | 1 | Byte | 0xC1 | [Packet type](PacketTypes.md) | +| 1 | 1 | Byte | 12 | Packet header - length of the packet | +| 2 | 1 | Byte | 0x2F | Packet header - packet type identifier | | 3 | 1 | Boolean | | IsFreshDrop; If this flag is set, the money is added to the map with an animation and sound. Otherwise, it's just added like it was already on the ground before. | | 4 | 2 | ShortLittleEndian | | Id | | 6 | 1 | Byte | | PositionX | diff --git a/docs/Packets/ServerToClient.md b/docs/Packets/ServerToClient.md index d95753daa..6811d291a 100644 --- a/docs/Packets/ServerToClient.md +++ b/docs/Packets/ServerToClient.md @@ -60,7 +60,7 @@ * [C1 2A - ItemDurabilityChanged (by server)](C1-2A-ItemDurabilityChanged_by-server.md) * [C1 2C - FruitConsumptionResponse (by server)](C1-2C-FruitConsumptionResponse_by-server.md) * [C1 2D - EffectItemConsumption (by server)](C1-2D-EffectItemConsumption_by-server.md) - * [C2 2F - MoneyDroppedExtended (by server)](C2-2F-MoneyDroppedExtended_by-server.md) + * [C1 2F - MoneyDroppedExtended (by server)](C1-2F-MoneyDroppedExtended_by-server.md) * [C3 30 - NpcWindowResponse (by server)](C3-30-NpcWindowResponse_by-server.md) * [C2 31 - StoreItemList (by server)](C2-31-StoreItemList_by-server.md) * [C1 32 - ItemBought (by server)](C1-32-ItemBought_by-server.md) diff --git a/src/Network/Packets/ServerToClient/ServerToClientPackets.cs b/src/Network/Packets/ServerToClient/ServerToClientPackets.cs index 0edf5ad31..3d421a0a8 100644 --- a/src/Network/Packets/ServerToClient/ServerToClientPackets.cs +++ b/src/Network/Packets/ServerToClient/ServerToClientPackets.cs @@ -8043,14 +8043,14 @@ private MoneyDroppedExtended(Memory data, bool initialize) var header = this.Header; header.Type = HeaderType; header.Code = Code; - header.Length = (ushort)Math.Min(data.Length, Length); + header.Length = (byte)Math.Min(data.Length, Length); } } /// /// Gets the header type of this data packet. /// - public static byte HeaderType => 0xC2; + public static byte HeaderType => 0xC1; /// /// Gets the operation code of this data packet. @@ -8065,7 +8065,7 @@ private MoneyDroppedExtended(Memory data, bool initialize) /// /// Gets the header of this packet. /// - public C2Header Header => new (this._data); + public C1Header Header => new (this._data); /// /// Gets or sets if this flag is set, the money is added to the map with an animation and sound. Otherwise, it's just added like it was already on the ground before. diff --git a/src/Network/Packets/ServerToClient/ServerToClientPackets.xml b/src/Network/Packets/ServerToClient/ServerToClientPackets.xml index a5a50f76f..c2521a31c 100644 --- a/src/Network/Packets/ServerToClient/ServerToClientPackets.xml +++ b/src/Network/Packets/ServerToClient/ServerToClientPackets.xml @@ -2929,7 +2929,7 @@ - C2Header + C1Header 2F MoneyDroppedExtended 12 diff --git a/src/Network/Packets/ServerToClient/ServerToClientPacketsRef.cs b/src/Network/Packets/ServerToClient/ServerToClientPacketsRef.cs index 4ea52c081..100d3791b 100644 --- a/src/Network/Packets/ServerToClient/ServerToClientPacketsRef.cs +++ b/src/Network/Packets/ServerToClient/ServerToClientPacketsRef.cs @@ -7858,14 +7858,14 @@ private MoneyDroppedExtendedRef(Span data, bool initialize) var header = this.Header; header.Type = HeaderType; header.Code = Code; - header.Length = (ushort)Math.Min(data.Length, Length); + header.Length = (byte)Math.Min(data.Length, Length); } } /// /// Gets the header type of this data packet. /// - public static byte HeaderType => 0xC2; + public static byte HeaderType => 0xC1; /// /// Gets the operation code of this data packet. @@ -7880,7 +7880,7 @@ private MoneyDroppedExtendedRef(Span data, bool initialize) /// /// Gets the header of this packet. /// - public C2HeaderRef Header => new (this._data); + public C1HeaderRef Header => new (this._data); /// /// Gets or sets if this flag is set, the money is added to the map with an animation and sound. Otherwise, it's just added like it was already on the ground before.