Prevent deprecation warnings as of v13.338
This commit is contained in:
parent
3437dadb9b
commit
7d39c487dc
2 changed files with 3 additions and 4 deletions
|
|
@ -22,9 +22,7 @@ export default [
|
||||||
Hooks: `readonly`,
|
Hooks: `readonly`,
|
||||||
ui: `readonly`,
|
ui: `readonly`,
|
||||||
Actor: `readonly`,
|
Actor: `readonly`,
|
||||||
Actors: `readonly`,
|
|
||||||
Item: `readonly`,
|
Item: `readonly`,
|
||||||
Items: `readonly`,
|
|
||||||
foundry: `readonly`,
|
foundry: `readonly`,
|
||||||
ChatMessage: `readonly`,
|
ChatMessage: `readonly`,
|
||||||
ActiveEffect: `readonly`,
|
ActiveEffect: `readonly`,
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,9 @@ import { registerMetaSettings } from "../settings/metaSettings.mjs";
|
||||||
import { registerUserSettings } from "../settings/userSettings.mjs";
|
import { registerUserSettings } from "../settings/userSettings.mjs";
|
||||||
import { registerWorldSettings } from "../settings/worldSettings.mjs";
|
import { registerWorldSettings } from "../settings/worldSettings.mjs";
|
||||||
|
|
||||||
|
const { Items, Actors } = foundry.documents.collections;
|
||||||
|
const { ItemSheet, ActorSheet } = foundry.appv1.sheets;
|
||||||
|
|
||||||
Hooks.once(`init`, () => {
|
Hooks.once(`init`, () => {
|
||||||
Logger.log(`Initializing`);
|
Logger.log(`Initializing`);
|
||||||
|
|
||||||
|
|
@ -70,10 +73,8 @@ Hooks.once(`init`, () => {
|
||||||
|
|
||||||
// #region Sheets
|
// #region Sheets
|
||||||
// Unregister core sheets
|
// Unregister core sheets
|
||||||
/* eslint-disable no-undef */
|
|
||||||
Items.unregisterSheet(`core`, ItemSheet);
|
Items.unregisterSheet(`core`, ItemSheet);
|
||||||
Actors.unregisterSheet(`core`, ActorSheet);
|
Actors.unregisterSheet(`core`, ActorSheet);
|
||||||
/* eslint-enabled no-undef */
|
|
||||||
|
|
||||||
// #region Actors
|
// #region Actors
|
||||||
Actors.registerSheet(game.system.id, CombinedHeroSheet, {
|
Actors.registerSheet(game.system.id, CombinedHeroSheet, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue