manuelVo / foundryvtt-drag-ruler

A Foundry VTT module that shows a ruler when dragging tokens so you can see how far you've dragged them
MIT License
39 stars 52 forks source link

Error in getAltOrientationFlagForToken when hex-size-support is not installed. #241

Closed BoltsJ closed 1 year ago

BoltsJ commented 1 year ago

If hex-size-support is not installed, this line throws an error. https://github.com/manuelVo/foundryvtt-drag-ruler/blob/develop/src/util.js#L67

get(…).api should be optional chained to get(…)?.api to support the case where hss isn't installed at all

manuelVo commented 1 year ago

Oops. Thanks!