mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-04-30 02:31:41 -04:00
[#56] Fix issue with actors and items being created with the base document type.
This commit is contained in:
parent
2bd28e939d
commit
5d776f8056
1 changed files with 1 additions and 1 deletions
|
@ -521,7 +521,7 @@ export class EntitySheetHelper {
|
||||||
// Identify the template Actor types
|
// Identify the template Actor types
|
||||||
const collection = game.collections.get(this.documentName);
|
const collection = game.collections.get(this.documentName);
|
||||||
const templates = collection.filter(a => a.getFlag("worldbuilding", "isTemplate"));
|
const templates = collection.filter(a => a.getFlag("worldbuilding", "isTemplate"));
|
||||||
const defaultType = this.TYPES[0];
|
const defaultType = this.TYPES.filter(t => t !== CONST.BASE_DOCUMENT_TYPE)[0] ?? CONST.BASE_DOCUMENT_TYPE;
|
||||||
const types = {
|
const types = {
|
||||||
[defaultType]: game.i18n.localize("SIMPLE.NoTemplate")
|
[defaultType]: game.i18n.localize("SIMPLE.NoTemplate")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue