Add short circuit to ensure that socket events through the API can't trigger the sands update while disabled
This commit is contained in:
parent
77d43f28b4
commit
78d02400d0
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import { localizer } from "../utils/Localizer.mjs";
|
|||
|
||||
export function updateSands(payload) {
|
||||
if (!game.user.isActiveGM) { return };
|
||||
if (!game.settings.get(game.system.id, `allowUpdateSandsSocket`)) { return };
|
||||
|
||||
// Assert payload validity
|
||||
const { value, delta } = payload;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue