Skip to content

Commit

Permalink
Possible fix for some issies
Browse files Browse the repository at this point in the history
  • Loading branch information
ChasarooniZ committed Aug 15, 2024
1 parent a50d46a commit 532707a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scripts/autoColorRing.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,6 @@ function getSetting(token, typeOrColor, ringOrBackground) {
}?.[token.document.disposition] || "neutral";

return resolvePlayerWorldSetting(
`auto-coloring.${ringOrBackground}.${typeOrColor}.${type}`
`auto-coloring.${type}.${ringOrBackground}.${typeOrColor}`
);
}
4 changes: 2 additions & 2 deletions scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ export function registerSettings() {
"hostile.bg",
"hidden.ring",
"hidden.bg",
].forEach((head) => {
].forEach((type) => {
["type", "custom-color"].forEach((setting) => {
const def = getDefault(isPlayer, setting, type);
const def = getDefault(isPlayer, setting, type.split(".")[0]);
const ty =
setting === "type" ? String : new foundry.data.fields.ColorField();
const config = {
Expand Down

0 comments on commit 532707a

Please sign in to comment.