@urso/core 0.7.48 → 0.7.50

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urso/core",
3
- "version": "0.7.48",
3
+ "version": "0.7.50",
4
4
  "description": "HTML5 game engine",
5
5
  "main": "build/js/index.js",
6
6
  "author": "Megbrimef",
@@ -182,11 +182,11 @@ class ModulesStatesManagerController {
182
182
 
183
183
  checkStateGuard = (key) => {
184
184
  //auto guard will check callLimit and return false, if limit is reached
185
- const callLimit = this._configStates[this._currentState].callLimit;
185
+ const callLimit = this._configStates[key].callLimit;
186
186
 
187
187
  if (
188
188
  callLimit &&
189
- callLimit >= (this._statesCallStatistic[this._currentState] || 0)
189
+ callLimit <= (this._statesCallStatistic[key] || 0)
190
190
  ) { return false; }
191
191
 
192
192
  const guardResult = this.statesGuards.checkGuard(key);