MinecraftDev icon indicating copy to clipboard operation
MinecraftDev copied to clipboard

Add inspection for the "Factory @Invoker must be static" mixin error

Open O7410 opened this issue 1 year ago • 0 comments

Minecraft Development for IntelliJ plugin version

2024.1-1.8.0

Description of the feature request

An inspection with the same message and a quick fix to make the method static The error message gets triggered in mixin is these methods: The method that decides the accessor type: AnnotatedMixinElementHandlerAccessor#attach The method that triggers the error if it's a non static factory: AnnotatedMixinElementHandlerAccessor#registerFactoryForTarget This is low priority since it's very easy to see what the problem is when you try to run it

O7410 avatar Aug 01 '24 18:08 O7410