Ignore:
Timestamp:
Jul 23, 2024, 6:49:56 PM (5 months ago)
Author:
alloc
Message:

*Fixed: Chat code
*Fixed: SSE connection counting, added connection set up logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/CommandExtensions/src/Commands/Give.cs

    r487 r499  
    5151                        }
    5252
    53                         int quality = Constants.cItemMaxQuality;
     53                        ushort quality = Constants.cItemMaxQuality;
    5454
    5555                        if (_params.Count == 4) {
    56                                 if (!int.TryParse (_params [3], out quality) || quality <= 0) {
     56                                if (!ushort.TryParse (_params [3], out quality) || quality > Constants.cItemMaxQuality) {
    5757                                        SdtdConsole.Instance.Output ("Quality is not an integer or not greater than zero.");
    5858                                        return;
Note: See TracChangeset for help on using the changeset viewer.