mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
addPortal fix
This commit is contained in:
parent
1384daf6f9
commit
fcda552719
1 changed files with 1 additions and 1 deletions
|
|
@ -788,7 +788,7 @@ window.Markers = (function () {
|
|||
const {cells, burgs} = pack;
|
||||
|
||||
// Portals can only be added to burgs
|
||||
if (cells.burg[cell]) return;
|
||||
if (!cells.burg[cell]) return;
|
||||
const burgName = burgs[cells.burg[cell]].name;
|
||||
|
||||
const name = `${burgName} Portal`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue