Add a hook listener to prevent invasive tweaks from OFT during development

This commit is contained in:
Oliver 2025-12-25 16:45:46 -07:00
parent ef719d4892
commit 07cba3d409
2 changed files with 8 additions and 0 deletions

View file

@ -0,0 +1,7 @@
/*
This is to prevent my tweaks module from adding invasive tweaks during development
of the system. But allowing all of the non-invasive tweaks to be used.
*/
Hooks.on(`oft.preRegisterTweak`, (tweak, invasive) => {
return !invasive;
});

View file

@ -1,3 +1,4 @@
// Hooks
import "./hooks/hotReload.mjs";
import "./hooks/oft.preRegisterTweak.mjs";
import "./hooks/getHeaderControlsActorSheetV2.mjs";