File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -122,11 +122,16 @@ export class IntegrationChrisPremades extends StartupHookMixin(IntegrationBase)
122
122
"vehicle" ,
123
123
] ) ;
124
124
125
- _entsJsonBlocklist = {
126
- "item" : [
127
- { name : "Shield" , source : Parser . SRC_PHB } , // Avoid collision with spell of the same name
128
- ] ,
129
- } ;
125
+ // Lazy init to avoid `Parser` being unavailable
126
+ static __entsJsonBlocklist = null ;
127
+
128
+ static get _entsJsonBlocklist ( ) {
129
+ return this . __entsJsonBlocklist ||= {
130
+ "item" : [
131
+ { name : "Shield" , source : Parser . SRC_PHB } , // Avoid collision with spell of the same name
132
+ ] ,
133
+ } ;
134
+ }
130
135
131
136
async _pGetExpandedAddonData (
132
137
{
@@ -146,7 +151,7 @@ export class IntegrationChrisPremades extends StartupHookMixin(IntegrationBase)
146
151
|| this . _propsJsonBlocklist . has ( propJson )
147
152
) return null ;
148
153
149
- const jsonBlocklist = this . _entsJsonBlocklist [ propJson ] ;
154
+ const jsonBlocklist = this . constructor . _entsJsonBlocklist [ propJson ] ;
150
155
if ( jsonBlocklist ?. length && jsonBlocklist . some ( it => fnMatch ( it ) ) ) return null ;
151
156
152
157
return this . _pGetExpandedAddonData_pWithStubs ( {
You can’t perform that action at this time.
0 commit comments