diff --git a/modules/sheets/PokemonItemSheet.js b/modules/sheets/PokemonItemSheet.js index c41abe5..142abe6 100644 --- a/modules/sheets/PokemonItemSheet.js +++ b/modules/sheets/PokemonItemSheet.js @@ -1,4 +1,4 @@ -export default class PokemonItemSheet extends ItemSheet { +export default class PokemonItemSheet extends foundry.appv1.sheets.ItemSheet { get template() { return `systems/pokemon/templates/sheets/${this.item.type}-sheet.html` } diff --git a/pokemon.js b/pokemon.js index 7614cd0..052f644 100644 --- a/pokemon.js +++ b/pokemon.js @@ -3,6 +3,6 @@ import PokemonItemSheet from "./modules/sheets/PokemonItemSheet.js"; Hooks.once("init", function() { console.log("pokemon | Initializing the Pokémon system"); - Items.unregisterSheet("core", ItemSheet); - Items.registerSheet("pokemon", PokemonItemSheet, { makeDefault: true }); + foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet); + foundry.documents.collections.Items.registerSheet("pokemon", PokemonItemSheet, { makeDefault: true }); }); \ No newline at end of file diff --git a/system.json b/system.json index 960323c..70447bf 100644 --- a/system.json +++ b/system.json @@ -1,5 +1,5 @@ { - "version": "0.0.6", + "version": "0.0.7", "id": "pokemon", "title": "Pokémon TTRPG", "description": "A Pokémon TTRPG", diff --git a/system.zip b/system.zip index 1e72dc2..13d2664 100644 Binary files a/system.zip and b/system.zip differ