revanced-patcher
revanced-patcher copied to clipboard
bug: `MutableMethod.addInstructions` does not remove dummy nops
Type
Other
Bug description
When the externalLabels parameter is used, dummy nops are generated to create temporal offsets. These do not get removed when the instructions are added to the method.
Steps to reproduce
Call MutableMethod.addInstructions with the externalLabels parameter. Observe the inserted instructions
Screenshots or videos
Usage:

Result:

Solution
Remove the dummy nops after they are not used anymore.