Skip to content

Commit

Permalink
fix doodads not in map
Browse files Browse the repository at this point in the history
  • Loading branch information
juvian committed Jun 6, 2024
1 parent 64a84a7 commit e84b766
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ data/*
!data/common.j
!data/blizzard.j
pjass.exe
test.js
test.js
test/
2 changes: 2 additions & 0 deletions utils/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ class Map {
}

writeWar(name, file, outputLocation) {
if (!this.namesToFiles[name]) return console.warn(name + ' not found in map, skipping writing the file');

const toWar = file.toWar(this[name]);

if (toWar.errors && toWar.errors.length) console.warn(toWar.errors);
Expand Down

0 comments on commit e84b766

Please sign in to comment.