Skip to content

Commit

Permalink
V12 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrinkmann committed May 26, 2024
1 parent f78a272 commit dd1ce2b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
3 changes: 3 additions & 0 deletions Changelog.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.0
- v12 compatibility

# 1.1.15
- Fixes bug with fullscreen

Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](https://img.shields.io/badge/Foundry-v11-informational)
![](https://img.shields.io/badge/Foundry-v12-informational)
![GitHub All Releases](https://img.shields.io/github/downloads/Syrious/foundryvtt-sheet-only/total?label=Downloads+Total)
![GitHub Downloads (all assets, latest release)](https://img.shields.io/github/downloads/Syrious/foundryvtt-sheet-only/latest/total?label=Downloads+Latest)
[![Support me on Patreon](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3DSyriousWorkshop%26type%3Dpatrons&style=flat)](https://patreon.com/SyriousWorkshop)
Expand Down
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "sheet-only",
"title": "Sheet Only",
"version": "1.1.15",
"version": "1.2.0",
"compatibility": {
"minimum": "11",
"verified": "11"
"verified": "12"
},
"authors": [
{
Expand Down
4 changes: 2 additions & 2 deletions scripts/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Hooks.once('setup', async () => {

function setupApi() {
game.modules.get('sheet-only').api = {
// Compatibility with plus version
plusCompatibility: "0.1.3",
// This sheet-only version is compatible with the following sheet-only-plus version
plusCompatibility: "0.2.0",

getActor: function () {
return currentActor;
Expand Down
4 changes: 1 addition & 3 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Hooks.on('deleteActor', async function (actor) {
if (isActorOwnedByUser(actor)) {
rebuildActorList();

if(actor === currentActor){
if (actor === currentActor) {
// We need to pop up the sheet for another character the user owns
popupSheet()
}
Expand All @@ -111,8 +111,6 @@ Hooks.once('closeUserConfig', async () => {
popupSheet()
});

/* ************************************* */
/* ************************************* */
/* ************************************* */

async function setupClient() {
Expand Down

0 comments on commit dd1ce2b

Please sign in to comment.