Skip to content

Commit

Permalink
Fixed critical bug causing monsters to not load properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed May 12, 2022
1 parent 349141b commit 9b593ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9574,7 +9574,7 @@ function app() {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
if (!(_this4.loadedSources.length && _lib_js__WEBPACK_IMPORTED_MODULE_5__.versionCompare(_this4.sourcesVersion, _this4.storedSourcesVersion) === 0)) {
if (!(_this4.loadedSources.length > 0 && _lib_js__WEBPACK_IMPORTED_MODULE_5__.versionCompare(_this4.sourcesVersion, _this4.storedSourcesVersion) === 0)) {
_context2.next = 2;
break;
}
Expand Down Expand Up @@ -9630,7 +9630,7 @@ function app() {
while (1) {
switch (_context3.prev = _context3.next) {
case 0:
if (!(_this5.loadedSources.length && _lib_js__WEBPACK_IMPORTED_MODULE_5__.versionCompare(_this5.storedSourcesVersion, _this5.sourcesVersion) === 0)) {
if (!(_this5.loadedMonsters.length > 0 && _lib_js__WEBPACK_IMPORTED_MODULE_5__.versionCompare(_this5.storedSourcesVersion, _this5.sourcesVersion) === 0)) {
_context3.next = 2;
break;
}
Expand Down
4 changes: 2 additions & 2 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ function app() {

async fetchSources(){

if(this.loadedSources.length && lib.versionCompare(this.sourcesVersion, this.storedSourcesVersion) === 0){
if(this.loadedSources.length > 0 && lib.versionCompare(this.sourcesVersion, this.storedSourcesVersion) === 0){
return this.loadedSources;
}

Expand Down Expand Up @@ -358,7 +358,7 @@ function app() {

async fetchMonsters(){

if(this.loadedSources.length && lib.versionCompare(this.storedSourcesVersion, this.sourcesVersion) === 0){
if(this.loadedMonsters.length > 0 && lib.versionCompare(this.storedSourcesVersion, this.sourcesVersion) === 0){
return this.loadedMonsters;
}

Expand Down

0 comments on commit 9b593ec

Please sign in to comment.