s2cfgtojson 3.2.6 → 3.2.8

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/Struct.mts +7 -1
  2. package/package.json +1 -1
package/Struct.mts CHANGED
@@ -52,6 +52,8 @@ export class Struct {
52
52
  this.__internal__.rawName || this.constructor.name,
53
53
  );
54
54
  patch.__internal__.isRoot = this.__internal__.isRoot;
55
+ patch.__internal__.isArray = this.__internal__.isArray;
56
+ patch.__internal__.useAsterisk = this.__internal__.useAsterisk;
55
57
 
56
58
  function markAsbPatch(s: Struct) {
57
59
  s.__internal__.bpatch = true;
@@ -92,7 +94,11 @@ export class Struct {
92
94
  }
93
95
 
94
96
  clone() {
95
- return Struct.fromString(this.toString())[0] as this;
97
+ const isRoot = this.__internal__.isRoot;
98
+ this.__internal__.isRoot = true;
99
+ const newInstance = Struct.fromString(this.toString())[0] as this;
100
+ this.__internal__.isRoot = isRoot;
101
+ return newInstance;
96
102
  }
97
103
 
98
104
  entries<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s2cfgtojson",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "Converts Stalker 2 Cfg file into POJOs",
5
5
  "keywords": [
6
6
  "stalker",