roavatar-renderer 1.3.4 → 1.3.5

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/dist/index.js +12 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -41942,18 +41942,21 @@ class HSRDesc {
41942
41942
  if (this.layers.length !== other.layers.length) return false;
41943
41943
  if (this.layerTransparent.length !== other.layerTransparent.length) return false;
41944
41944
  for (const layer of this.layers) {
41945
- layerLoop: {
41946
- const selfIndex = this.layers.indexOf(layer);
41947
- for (const otherLayer of other.layers) {
41948
- const otherIndex = other.layers.indexOf(otherLayer);
41949
- if (layer.isSame(otherLayer)) {
41950
- if (this.layerTransparent[selfIndex] !== other.layerTransparent[otherIndex]) {
41951
- return false;
41952
- }
41953
- break layerLoop;
41945
+ let foundLayer = false;
41946
+ const selfIndex = this.layers.indexOf(layer);
41947
+ for (const otherLayer of other.layers) {
41948
+ const otherIndex = other.layers.indexOf(otherLayer);
41949
+ if (layer.isSame(otherLayer)) {
41950
+ foundLayer = true;
41951
+ if (this.layerTransparent[selfIndex] !== other.layerTransparent[otherIndex]) {
41952
+ return false;
41954
41953
  }
41954
+ break;
41955
41955
  }
41956
41956
  }
41957
+ if (!foundLayer) {
41958
+ return false;
41959
+ }
41957
41960
  }
41958
41961
  }
41959
41962
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roavatar-renderer",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "A renderer for Roblox avatars, used by the RoAvatar extension.",
5
5
  "author": "steinan",
6
6
  "type": "module",