diff --git a/CHANGELOG.md b/CHANGELOG.md index ecf67c73..ac0b1a94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [13.3.1](https://github.com/seleb/bitsy-hacks/compare/v13.3.0...v13.3.1) (2020-07-24) + + +### Bug Fixes + +* setting same portrait twice in a row causing issues ([b7b55ac](https://github.com/seleb/bitsy-hacks/commit/b7b55ac9a73a99da0ac637ab266ce0dd2d76ee28)) + # [13.3.0](https://github.com/seleb/bitsy-hacks/compare/v13.2.7...v13.3.0) (2020-07-24) diff --git a/dist/character-portraits-animated.js b/dist/character-portraits-animated.js index c8d35289..46423773 100644 --- a/dist/character-portraits-animated.js +++ b/dist/character-portraits-animated.js @@ -1099,7 +1099,7 @@ function addDialogTag(tag, fn) { @file character portraits @summary high quality anime jpegs (or pngs i guess) @license MIT -@version 2.1.0 +@version 2.1.1 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -1172,6 +1172,7 @@ addDialogTag('portrait', function (environment, parameters, onReturn) { var newPortrait = parameters[0]; var image = state.portraits[newPortrait]; if (state.portrait === image) { + onReturn(null); return; } state.portrait = image; diff --git a/dist/character-portraits.js b/dist/character-portraits.js index 62445200..e3d2a9ba 100644 --- a/dist/character-portraits.js +++ b/dist/character-portraits.js @@ -3,7 +3,7 @@ @file character portraits @summary high quality anime jpegs (or pngs i guess) @license MIT -@version 2.1.0 +@version 2.1.1 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -345,6 +345,7 @@ addDialogTag('portrait', function (environment, parameters, onReturn) { var newPortrait = parameters[0]; var image = state.portraits[newPortrait]; if (state.portrait === image) { + onReturn(null); return; } state.portrait = image; diff --git a/package-lock.json b/package-lock.json index 84244ed7..d1eacb66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bitsy/hecks", - "version": "13.3.0", + "version": "13.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b553a3e8..9b11f3d4 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "hacks" ], "main": "index.mjs", - "version": "13.3.0", + "version": "13.3.1", "scripts": { "build": "rollup -c", "test": "jest --runInBand",