Fixed our onCreate methods unintentionally being run on all clients

This commit is contained in:
WBHarry 2025-07-24 12:47:57 +02:00
parent 4551a2bcfe
commit 967b3ba2ab
6 changed files with 15 additions and 4 deletions

View file

@ -13,7 +13,7 @@ export default class DhTooltipManager extends foundry.helpers.interaction.Toolti
if (item) {
const type = actionId ? 'action' : item.type;
const description = await TextEditor.enrichHTML(item.system.description);
for (let feature of item.system.features) {
for (let feature of item.system?.features ?? []) {
feature.system.enrichedDescription = await TextEditor.enrichHTML(feature.system.description);
}