@rustwirebot/rustplus.js 2.5.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/rustplus.proto +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rustwirebot/rustplus.js",
3
- "version": "2.5.1",
3
+ "version": "2.5.2",
4
4
  "description": "NodeJS library for controlling Smart Switches and interacting with the Rust+ Companion API. Maintained fork of @liamcottle/rustplus.js, republished by BotForge Studios / RustWire.",
5
5
  "main": "rustplus.js",
6
6
  "bin": {
@@ -45,4 +45,4 @@
45
45
  "uuid": "^11.1.1",
46
46
  "ws": "^8.3.0"
47
47
  }
48
- }
48
+ }
package/rustplus.proto CHANGED
@@ -276,7 +276,7 @@ message AppEntityPayload {
276
276
  message Item {
277
277
  required int32 itemId = 1;
278
278
  required int32 quantity = 2;
279
- required bool itemIsBlueprint = 3;
279
+ optional bool itemIsBlueprint = 3; // FIX: some servers omit this for non-blueprint items; was `required`
280
280
  }
281
281
  }
282
282
 
@@ -337,8 +337,8 @@ message AppMarker {
337
337
  required int32 currencyId = 3;
338
338
  required int32 costPerItem = 4;
339
339
  required int32 amountInStock = 5;
340
- required bool itemIsBlueprint = 6;
341
- required bool currencyIsBlueprint = 7;
340
+ optional bool itemIsBlueprint = 6; // FIX: some servers omit this for non-blueprint items; was `required`
341
+ optional bool currencyIsBlueprint = 7; // FIX: same as above; was `required`
342
342
  optional float itemCondition = 8;
343
343
  optional float itemConditionMax = 9;
344
344
  }