Bladeren bron

Use await when creating Drawings

Thanks to cole (not cora!) (cole#9640) on Foundry Discord
tags/0.0.6
bertieb 4 jaren geleden
bovenliggende
commit
1f6b646fcc
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +2
    -2
      module.json
  2. +1
    -1
      scripts/wallconvert.js

+ 2
- 2
module.json Bestand weergeven

@@ -3,10 +3,10 @@
"title": "Walls-to-Drawing",
"description": "Convert selected walls to a Drawing to make walls visible to players",
"authors": [{ "name": "BertieB", "email": "foundry@bertieb.org", "url": "https://bertieb.org" }],
"version": "0.0.5",
"version": "0.0.6",
"minimumCoreVersion": "0.6.5",
"scripts": [ "scripts/wallconvert.js" ],
"url": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing",
"manifest": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing/raw/branch/master/module.json",
"download": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing/archive/0.0.5.zip"
"download": "https://git.bertieb.org/bertieb/foundry-walls-to-drawing/archive/0.0.6.zip"
}

+ 1
- 1
scripts/wallconvert.js Bestand weergeven

@@ -45,7 +45,7 @@ Hooks.on('getSceneControlButtons', controls => {
"title": "Convert selected to Drawing",
"onClick": () => {
canvas.walls.controlled.forEach(function(wall) {
Drawing.create({
await Drawing.create({
type: CONST.DRAWING_TYPES.POLYGON,
author: game.user._id,
x: 0,


Laden…
Annuleren
Opslaan