diff --git a/ddimport.js b/ddimport.js index 991f3c2..d5a8a34 100644 --- a/ddimport.js +++ b/ddimport.js @@ -128,22 +128,22 @@ class DDImporter { console.log(this.getNearerPoint(point2, [portalPoint1, portalPoint2])); topoint1 = this.getNearerPoint(point1, [portalPoint1, portalPoint2]); topoint2 = this.getNearerPoint(point2, [portalPoint1, portalPoint2]); - let wall = new Wall({ + let wall1 = new Wall({ c : [ point1[0], point1[1], topoint1[0], topoint1[1]] }); - wallSet.push(wall.data) - let wall = new Wall({ + wallSet.push(wall1.data) + let wall2 = new Wall({ c : [ point2[0], point2[1], topoint2[0], topoint2[1]] }); - wallSet.push(wall.data) + wallSet.push(wall2.data) } else{ let wall = new Wall({ diff --git a/module.json b/module.json index 61d6748..197f6b0 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "name": "dd-import", "title": "DungeonDraft Importer", "description": "Imports scene elements from Dungeon Draft map files", - "version": "0.4.2", + "version": "0.4.3", "authors": [ { "name": "Moo Man"