Skip to content

Commit

Permalink
im an idiot who breaks things
Browse files Browse the repository at this point in the history
  • Loading branch information
spacemandev-git committed Sep 4, 2020
1 parent ad2210e commit dc48d17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/scripts/drop.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function handleDroppedFolder(folderId, x, y) {
let t = canvas.tiles.worldTransform;
const _x = (x - t.tx) / canvas.stage.scale.x;
const _y = (y - t.ty) / canvas.stage.scale.y;
if (game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'] && game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'] != "") {
if (game.settings.get('cardsupport', `${folderId}-settings`) && game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'] != "") {
let deckImgTex = yield loadTexture(game.settings.get('cardsupport', `${folderId}-settings`)['deckImg']);
Tile.create({
name: game.folders.get(folderId).name,
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/drop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function handleDroppedFolder(folderId, x, y){
const _x = (x - t.tx) / canvas.stage.scale.x
const _y = (y - t.ty) / canvas.stage.scale.y

if(game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'] && game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'] != ""){
if(game.settings.get('cardsupport', `${folderId}-settings`) && game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'] != ""){
let deckImgTex = await loadTexture(game.settings.get('cardsupport', `${folderId}-settings`)['deckImg'])
Tile.create({
name: game.folders.get(folderId).name,
Expand Down

0 comments on commit dc48d17

Please sign in to comment.