File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
common/src/main/java/org/embeddedt/modernfix/core Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -248,13 +248,11 @@ private void applyBlockStateCacheScan(ClassNode targetClass) {
248248
249249 // We now know all methods that have been injected into initCache, and their callers. See what fields they write to
250250 writingMethods .forEach ((name , method ) -> {
251- if (cacheCalledInjectors .contains (name )) {
252- for (AbstractInsnNode n : method .instructions ) {
253- if (n instanceof FieldInsnNode ) {
254- FieldInsnNode fieldAcc = (FieldInsnNode )n ;
255- if (fieldAcc .getOpcode () == Opcodes .PUTFIELD && fieldAcc .owner .equals (targetClass .name )) {
256- accessedFieldNames .add (fieldAcc .name );
257- }
251+ for (AbstractInsnNode n : method .instructions ) {
252+ if (n instanceof FieldInsnNode ) {
253+ FieldInsnNode fieldAcc = (FieldInsnNode )n ;
254+ if (fieldAcc .getOpcode () == Opcodes .PUTFIELD && fieldAcc .owner .equals (targetClass .name )) {
255+ accessedFieldNames .add (fieldAcc .name );
258256 }
259257 }
260258 }
You can’t perform that action at this time.
0 commit comments