Remove the devMode settings and use the inDev flag instead

This commit is contained in:
Oliver 2025-12-24 20:21:32 -07:00
parent f1b23c54d8
commit 8ea22d7eaf
6 changed files with 3 additions and 39 deletions

View file

@ -70,7 +70,7 @@ export class WeaponData extends CommonItemData {
* @returns
*/
async _preUpdate(changes, options, user) {
if (options.force && game.settings.get(`ripcrypt`, `devMode`)) { return };
if (options.force && game.system.flags.inDev) { return };
const diff = diffObject(this.parent._source, changes);
let valid = super._preUpdate(changes, options, user);