Fix the deprecation warning in v14 & hide the context menu options in v13 correctly

This commit is contained in:
Oliver 2026-05-10 14:56:28 -06:00
parent b36fe27182
commit 500eabc755
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ export function createContextMenuOption(option) {
if (game.release.generation < 14) {
return {
name: option.label,
visible: option.condition,
condition: option.visible,
callback: (target) => option.onClick(null, target),
};
};