squishjs 1.3.5 → 1.3.6

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 +1 -1
  2. package/src/Squisher.js +1 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squishjs",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "squish & unsquish stuff",
5
5
  "scripts": {
6
6
  "test": "node testRunner.js"
package/src/Squisher.js CHANGED
@@ -122,15 +122,7 @@ class Squisher {
122
122
  }
123
123
 
124
124
  if (node.node.playerIds.length === 0 || node.node.playerIds.findIndex(i => Number(i) === Number(playerId)) >= 0) {
125
- if (node.node.asset) {
126
- const assetInfo = this.gameAssets[Object.keys(node.node.asset)[0]]?.info;
127
- if (assetInfo.type === 'audio' && !this.playerSettings[playerId]?.SOUND?.ENABLED) {
128
- } else {
129
- playerMap[playerId].push(squished);
130
- }
131
- } else {
132
- playerMap[playerId].push(squished);
133
- }
125
+ playerMap[playerId].push(squished);
134
126
  } else {
135
127
  playerIdsToRemove.add(playerId);
136
128
  }