Skip to content

Commit

Permalink
Merge pull request #27 from Saibot393/main
Browse files Browse the repository at this point in the history
Small fix to remove deprecation warnings
  • Loading branch information
theripper93 authored Dec 16, 2023
2 parents 955c1fd + 1112a8d commit ce69361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/patches.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@ export function registerWrappers() {
token.vision.los.origin.b = token.vision.los.origin.t = losHeight;
}
if (canvas.effects.lightSources.has(sourceId)) {
token.light.los.origin.b = token.light.los.origin.t = losHeight;
token.light.shape.origin.b = token.light.shape.origin.t = losHeight;
}
if (canvas.effects.visionSources.has(sourceId) && (token.vision.los.origin.b !== losHeight || token.vision.los.origin.t !== losHeight)
|| canvas.effects.lightSources.has(sourceId) && (token.light.los.origin.b !== losHeight || token.light.los.origin.t !== losHeight)) {
|| canvas.effects.lightSources.has(sourceId) && (token.light.shape.origin.b !== losHeight || token.light.shape.origin.t !== losHeight)) {
token.updateSource({ defer: true });
WallHeight.schedulePerceptionUpdate();
}
Expand Down Expand Up @@ -418,4 +418,4 @@ export function registerWrappers() {
libWrapper.OVERRIDE,
{ perf_mode: libWrapper.PERF_FAST }
);
}
}

0 comments on commit ce69361

Please sign in to comment.