Closed SquidDev closed 9 years ago
It might be worth re-writing this to remove the need for ASM injection. The main type we need is the MethodSelector. This is stored in the ClassMethodComposer class which is stored in the ComposedMethodFactory class.
So we need to call PERIPHERAL_METHODS_FACTORY.composer.selector.addProvidedEnv(...)
. However the composer
and selector
fields are private.
See http://www.computercraft.info/forums2/index.php?/topic/21987-mc-1710-cc-174-cc-tweaks/page__view__findpost__p__232231
Changed from static constructor to normal constructor
Also, whilst we are doing this I forgot the call to
nodes.accept(mv)
.