mirror of
https://github.com/RoY7x/worldbuilding.git
synced 2025-07-10 00:20:30 -04:00
[#35] Use different ID attributes for sidebar documents depending on foundry version.
This commit is contained in:
parent
e966775723
commit
84562bd9c2
3 changed files with 15 additions and 12 deletions
|
@ -532,7 +532,7 @@ export class EntitySheetHelper {
|
|||
}
|
||||
|
||||
// Render the document creation form
|
||||
const useEntity = foundry.utils.isNewerVersion("9", game.version ?? game.data.version);
|
||||
const useEntity = game.worldbuilding.useEntity;
|
||||
const template = `templates/sidebar/${useEntity ? "entity" : "document" }-create.html`;
|
||||
const html = await renderTemplate(template, {
|
||||
name: data.name || game.i18n.format("DOCUMENT.New", {type: label}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue